Revert "前端修改,用于访问本地后端,不推送远程使用"

This reverts commit 4299c13122.
dev
xiaohuo 10 months ago
parent 4299c13122
commit 7d84e735e2
  1. 2
      ALOps_sys_fe/alops-ui/.env.development
  2. 1
      ALOps_sys_fe/alops-ui/package.json
  3. 15
      ALOps_sys_fe/alops-ui/src/router/index.js
  4. 2
      ALOps_sys_fe/alops-ui/vue.config.js

@ -5,7 +5,7 @@ VUE_APP_TITLE = 中国烟草
ENV = 'development'
# 若依管理系统/开发环境
VUE_APP_BASE_API = '/dev-api'
VUE_APP_BASE_API = 'http://39.102.212.161:8080'
# 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true

@ -7,7 +7,6 @@
"scripts": {
"dev": "vue-cli-service serve",
"build:prod": "vue-cli-service build",
"build:dev": "vue-cli-service build --mode development",
"build:stage": "vue-cli-service build --mode staging",
"preview": "node build/index.js --preview"
},

@ -134,20 +134,7 @@ export const dynamicRoutes = [
}
]
},
{
path: '/system/dict-data',
component: Layout,
hidden: true,
permissions: ['system:dict:list'],
children: [
{
path: 'index/:dictId(\\d+)',
component: () => import('@/views/system/dict/data'),
name: 'Data',
meta: { title: '字典数据', activeMenu: '/system/dict' }
}
]
},
{
path: '/monitor/job-log',
component: Layout,

@ -8,7 +8,7 @@ function resolve(dir) {
const CompressionPlugin = require('compression-webpack-plugin')
const name = process.env.VUE_APP_TITLE || '中国烟草运维管理系统' // 网页标题
// http://39.102.212.161:8080
const baseUrl = 'http://39.102.212.161:8080' // 后端接口
const port = process.env.port || process.env.npm_config_port || 80 // 端口

Loading…
Cancel
Save