Explorar o código

修改路由跳转方式

尹帮元 %!s(int64=2) %!d(string=hai) anos
pai
achega
9be0f88969
Modificáronse 3 ficheiros con 3 adicións e 3 borrados
  1. 1 1
      .env.production
  2. 1 1
      build/index.js
  3. 1 1
      src/router/index.js

+ 1 - 1
.env.production

@@ -5,4 +5,4 @@ VUE_APP_TITLE = 移动安全保卫管理平台项目
 ENV = 'production'
 
 # 生产环境
-VUE_APP_BASE_API = '/prod-api'
+VUE_APP_BASE_API = 'http://10.87.10.49:8080/'

+ 1 - 1
build/index.js

@@ -9,7 +9,7 @@ if (process.env.npm_config_preview || rawArgv.includes('--preview')) {
 
   run(`vue-cli-service build ${args}`)
 
-  const port = 9526
+  const port = 8080
   const publicPath = config.publicPath
 
   var connect = require('connect')

+ 1 - 1
src/router/index.js

@@ -177,7 +177,7 @@ Router.prototype.replace = function push(location) {
 }
 
 export default new Router({
-  mode: 'history', // 去掉url中的#
+  mode: 'hash', // 去掉url中的#
   scrollBehavior: () => ({ y: 0 }),
   routes: constantRoutes
 })