diff --git a/sub-government-affairs-service/src/main.js b/sub-government-affairs-service/src/main.js index b684fc9..d79dd7c 100644 --- a/sub-government-affairs-service/src/main.js +++ b/sub-government-affairs-service/src/main.js @@ -13,12 +13,11 @@ import router from './router'; import pinia from './store'; import ElementPlus from 'element-plus'; import 'element-plus/dist/index.css'; -// import Avue from '@smallwei/avue'; -// import '@smallwei/avue/lib/index.css'; +import Avue from '@smallwei/avue'; +import '@smallwei/avue/lib/index.css'; import { registerDirective } from './directives'; import { registerGlobalComponents } from './plugins/globalComponents'; import { registerElIcons } from './plugins/icon'; -// import { registerMicroApps } from './plugins/micro'; import './utils/permission'; const registerMicroApps = () => { @@ -43,12 +42,8 @@ const registerMicroApps = () => { }; const render = async ({ container }) => { await new Promise((resolve) => setTimeout(resolve, 1000)); - // if (!container) { - // console.error('挂载容器不存在'); - // return; - // } app = createApp(App); - app.use(pinia).use(router).use(ElementPlus); + app.use(pinia).use(router).use(ElementPlus).use(Avue); registerGlobalComponents(app); registerElIcons(app); registerDirective(app); diff --git a/sub-government-affairs-service/src/router/modules/resource-bak.js b/sub-government-affairs-service/src/router/modules/resource-bak.js deleted file mode 100644 index 1a96caf..0000000 --- a/sub-government-affairs-service/src/router/modules/resource-bak.js +++ /dev/null @@ -1,69 +0,0 @@ -import Layout from '@/layouts/index.vue'; -import Views from '@/layouts/Views.vue'; - -export default [ - { - path: '/resource', - name: 'resource', - component: Layout, - redirect: '/grid', - meta: { title: '土地资源管理', icon: 'icon-test' }, - children: [ - { - path: '/grid', - component: () => import('@/views/resource/grid/index.vue'), - name: 'grid', - meta: { title: '网格化管理', icon: 'Document' }, - }, - ], - }, -]; - -// { -// path: '/resource-info', -// name: 'resource-info-manager', -// component: Views, -// meta: { title: '土地信息管理', icon: 'Document' }, -// redirect: '/land', -// children: [ -// { -// path: '/land', -// component: () => import('@/views/resource/land/index.vue'), -// name: 'land', -// meta: { title: '土地资源', icon: 'Document' }, -// }, -// { -// path: '/land-fill', -// name: 'land-fill', -// component: () => import('@/views/resource/land/index.vue'), -// meta: { title: '土地信息填报审核', icon: 'Document' }, -// }, -// { -// path: '/land-fill-review', -// name: 'land-fill-review', -// component: () => import('@/views/resource/land/index.vue'), -// meta: { title: '土地流转信息填报审核', icon: 'Document' }, -// }, -// ], -// }, -// { -// path: '/land-monitor', -// name: 'land-monitor', -// component: Views, -// meta: { title: '土地监管', icon: 'Document' }, -// redirect: '/land-patrol', -// children: [ -// { -// path: '/land-patrol', -// component: () => import('@/views/resource/land/index.vue'), -// name: 'land-patrol', -// meta: { title: '土地使用巡查', icon: 'Document' }, -// }, -// { -// path: '/land-handle', -// name: 'land-handle', -// component: () => import('@/views/resource/land/index.vue'), -// meta: { title: '土地违法处理', icon: 'Document' }, -// }, -// ], -// },