Browse Source

edit route

master
chutingting 1 year ago
parent
commit
08dc3fdc4c
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      src/router/index.js
  2. +1
    -1
      vue.config.js

+ 1
- 1
src/router/index.js View File

@@ -97,7 +97,7 @@ export const constantRoutes = [
// { path: '*', redirect: '/404', hidden: true }
]
const createRouter = () => new Router({
base: window.__POWERED_BY_QIANKUN__ ? '/vdcop_auth/admin' : '/admin',
base: '/',
mode: 'history', // require service support
scrollBehavior: () => ({ y: 0 }),
routes: constantRoutes


+ 1
- 1
vue.config.js View File

@@ -25,7 +25,7 @@ module.exports = {
* In most cases please use '/' !!!
* Detail: https://cli.vuejs.org/config/#publicpath
*/
publicPath: process.env.NODE_ENV === 'development' ? '/' : '/admin',
publicPath: '/',
outputDir: 'dist',
assetsDir: 'static',
lintOnSave: process.env.NODE_ENV === 'development',


Loading…
Cancel
Save