修改
This commit is contained in:
parent
5114afab01
commit
33b13543e3
@ -120,11 +120,11 @@ const runCode = async () => {
|
||||
const componentModule = await loadModule('dynamic.vue', options)
|
||||
const component = componentModule.default || componentModule
|
||||
const dynamicProps = Vue.reactive({
|
||||
menuList: props.menuList,
|
||||
isFixed: props.isFixed,
|
||||
projectName: props.projectName,
|
||||
applicationId: props.applicationId,
|
||||
isExecuteEvent: props.isExecuteEvent
|
||||
menuList: menuList.value,
|
||||
isFixed: true,
|
||||
projectName: '测试',
|
||||
applicationId: applicationId.value,
|
||||
isExecuteEvent: false
|
||||
})
|
||||
// 修改createApp方式
|
||||
prevApp = Vue.createApp({
|
||||
@ -185,7 +185,10 @@ function getmenuinfo() {
|
||||
const paramss = { appId: applicationId.value }
|
||||
moduleList(paramss).then((ress:any) => {
|
||||
var arr = ress.data
|
||||
menuList.value = processMenuTree(menuList.value, arr)
|
||||
if(ress.data.length>0){
|
||||
menuList.value = processMenuTree(menuList.value, arr)
|
||||
}
|
||||
runCode()
|
||||
})
|
||||
})
|
||||
|
||||
|
@ -5,7 +5,7 @@ import { ElMessage, ElMessageBox } from 'element-plus'
|
||||
// import PermissionSet from '@/viewsnew/application/permissionset/index.vue'
|
||||
// import UserInfoSet from '@/viewsnew/application/permissionset/user/userinfo.vue'
|
||||
import {useRoute, useRouter } from 'vue-router'
|
||||
import { useCache } from '@/hooks/web/useCache'
|
||||
import { useCache } from '@/data-visualization/hooks/web/useCache'
|
||||
const { wsCache } = useCache()
|
||||
const router = useRouter()
|
||||
const route = useRoute()
|
||||
|
Loading…
Reference in New Issue
Block a user