无人机管理后台前端(已迁走)
罗广辉
2025-07-16 33e9a474b8c3cdc5ad6c22fc119a7a53cab0e5ae
feat: 江乌使用hash
2 files modified
8 ■■■■■ changed files
src/buildConfig/buildConfig/config.jiangwu.js 2 ●●● patch | view | raw | blame | history
src/router/index.js 6 ●●●●● patch | view | raw | blame | history
src/buildConfig/buildConfig/config.jiangwu.js
@@ -3,7 +3,7 @@
        userLoginTitle (key) {
            return '大吉山钨业无人机安防监测平台'
        },
    routerHash: true, //使用hash路由
        loginTitle: '大吉山钨业无人机安防监测平台',
      hideMenuTopLogo: true, // 是否隐藏菜单顶部logo
    }
src/router/index.js
@@ -1,13 +1,15 @@
import { createRouter, createWebHistory } from 'vue-router';
import { createRouter, createWebHashHistory, createWebHistory } from 'vue-router';
import PageRouter from './page/';
import ViewsRouter from './views/';
import AvueRouter from './avue-router';
import i18n from '@/lang';
import Store from '@/store/';
import getBaseConfig from '@/buildConfig/config';
const { routerHash } = getBaseConfig()
//创建路由
const Router = createRouter({
  base: import.meta.env.VITE_APP_BASE,
  history: createWebHistory(import.meta.env.VITE_APP_BASE),
  history: routerHash ? createWebHashHistory(import.meta.env.VITE_APP_BASE) : createWebHistory(import.meta.env.VITE_APP_BASE),
  routes: [...PageRouter, ...ViewsRouter],
});
AvueRouter.install({