Browse Source

生产环境配置固定路由

459242451@qq.com 4 years ago
parent
commit
011c4fb2f5
3 changed files with 3 additions and 2 deletions
  1. 1 1
      public/index.html
  2. 1 1
      src/router/index.js
  3. 1 0
      vue.config.js

+ 1 - 1
public/index.html

@@ -242,7 +242,7 @@
   <!-- 全局配置 -->
   <script>
     window._CONFIG = {};
-    window._CONFIG['domianURL'] = 'http://127.0.0.1:8080/king';
+    window._CONFIG['domianURL'] = 'http://36.156.157.116:8000/adadminback/king';
     window._CONFIG['casPrefixUrl'] = 'http://cas.example.org:8443/cas';
     window._CONFIG['onlinePreviewDomainURL'] = 'http://fileview.jeecg.com/onlinePreview';
     window._CONFIG['staticDomainURL'] = window._CONFIG['domianURL'] + '/sys/common/static';

+ 1 - 1
src/router/index.js

@@ -6,7 +6,7 @@ Vue.use(Router)
 
 export default new Router({
   mode: 'history',
-  base: process.env.BASE_URL,
+  base: '/adadminweb/',
   scrollBehavior: () => ({ y: 0 }),
   routes: constantRouterMap
 })

+ 1 - 0
vue.config.js

@@ -7,6 +7,7 @@ function resolve(dir) {
 
 // vue.config.js
 module.exports = {
+  publicPath:"/adadminweb",
   /*
     Vue-cli3:
     Crashed when using Webpack `import()` #2463