Commit b792e935 authored by 李苏's avatar 李苏 💬

修改

parent aa46bdb9
...@@ -6,3 +6,6 @@ ENV = 'production' ...@@ -6,3 +6,6 @@ ENV = 'production'
# 陕钢安全管理/生产环境 # 陕钢安全管理/生产环境
VUE_APP_BASE_API = '/dev-api' VUE_APP_BASE_API = '/dev-api'
# 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true
\ No newline at end of file
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
"scripts": { "scripts": {
"clear": "rmdir /s/q node_modules", "clear": "rmdir /s/q node_modules",
"serve": "node init && vue-cli-service serve", "serve": "node init && vue-cli-service serve",
"devbuild": "vue-cli-service build --mode development",
"build": "vue-cli-service build", "build": "vue-cli-service build",
"build:report": "vue-cli-service build --report", "build:report": "vue-cli-service build --report",
"build:stage": "vue-cli-service build --mode staging", "build:stage": "vue-cli-service build --mode staging",
......
...@@ -18,3 +18,12 @@ export function initBm(query) { ...@@ -18,3 +18,12 @@ export function initBm(query) {
data: query||{} data: query||{}
}) })
} }
/* 系统初始接口 */
export function systeminfo(query) {
return request({
url: '/sgaq/systeminfo',
method: 'post',
data: query||{}
})
}
...@@ -33,6 +33,9 @@ export default { ...@@ -33,6 +33,9 @@ export default {
return this.$store.state.settings.sideTheme return this.$store.state.settings.sideTheme
} }
}, },
mounted(){
this.title=localStorage.getItem('appName')
},
data() { data() {
return { return {
title: '陕钢安全管理系统', title: '陕钢安全管理系统',
......
...@@ -78,6 +78,8 @@ const permission = { ...@@ -78,6 +78,8 @@ const permission = {
// 向后端请求路由数据 // 向后端请求路由数据
getRouters({}).then(res => { getRouters({}).then(res => {
let appName=res.data.appName||''
localStorage.setItem('appName',appName)
let menus=res.data.menu let menus=res.data.menu
let asymenus=JSON.parse(JSON.stringify(res.data.menu)) let asymenus=JSON.parse(JSON.stringify(res.data.menu))
/* 权限路由*/ /* 权限路由*/
......
...@@ -35,7 +35,7 @@ module.exports = { ...@@ -35,7 +35,7 @@ module.exports = {
proxy: { proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy // detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: { [process.env.VUE_APP_BASE_API]: {
// target: `http://192.168.30.254:18080/dmg`, // target: `http://192.168.30.254:18080/dmg`,
target: `http://localhost:9080/sgaq`, target: `http://localhost:9080/sgaq`,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment