|
@@ -53,7 +53,6 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
-import { admin } from '../../../layout/menu'
|
|
|
import { menuInfo } from '../../../layout/site'
|
|
|
import { ElMessage } from 'element-plus'
|
|
|
import store from '@/stores/counter'
|
|
@@ -61,7 +60,7 @@ import type { Ref } from 'vue'
|
|
|
import { ref, onMounted, watch } from 'vue'
|
|
|
import { useRoute } from 'vue-router'
|
|
|
import { ModuleStore } from '@common/src/stores/system/module' //模块
|
|
|
-import { RoleStore } from '@common/src/stores/system/role' //模块
|
|
|
+import { RoleStore } from '@common/src/stores/system/role' //角色
|
|
|
import type { IQueryResult } from '@/util/types.util' //
|
|
|
const module = ModuleStore()
|
|
|
const role = RoleStore()
|
|
@@ -69,7 +68,7 @@ const route = useRoute()
|
|
|
let onRoutes = route.path
|
|
|
let user: Ref<any> = ref({})
|
|
|
const styleInfo: Ref<any> = ref(menuInfo.info)
|
|
|
-let items: Ref<any> = ref(admin)
|
|
|
+let items: Ref<any> = ref([])
|
|
|
onMounted(async () => {
|
|
|
user.value = store.state.user
|
|
|
})
|