소스 검색

edit route

master
chutingting 1 년 전
부모
커밋
08dc3fdc4c
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +1
    -1
      src/router/index.js
  2. +1
    -1
      vue.config.js

+ 1
- 1
src/router/index.js 파일 보기

@@ -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 파일 보기

@@ -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',


불러오는 중...
취소
저장