资源管控

dev
rosehan 3 years ago
parent 3817325a34
commit 2ab94801d8
  1. 10
      ruoyi-ui/vue.config.js

@ -35,7 +35,7 @@ module.exports = {
proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: {
target: `http://localhost:8080/`,//用户名:admin 密码Cjy@123abc
target: `http://39.105.17.128:8096/`,//用户名:admin 密码CJYjqgk@2023!
// target: `http://192.168.0.200:8080/`,//用户名:admin 密码Cjy@123abc
changeOrigin: true,
pathRewrite: {
@ -49,7 +49,6 @@ module.exports = {
loaderOptions: {
sass: {
sassOptions: {outputStyle: "expanded"},
},
}
},
@ -72,7 +71,7 @@ module.exports = {
],
},
chainWebpack(config) {
// 全局scss变量定义以供组件内使用
//全局scss变量定义以供组件内使用
const oneOfsMap = config.module.rule('scss').oneOfs.store
oneOfsMap.forEach(item => {
@ -82,6 +81,8 @@ module.exports = {
.options({
// 要公用的scss的路径
resources: [
// 'src/assets/styles/variables.scss',
// 'src/assets/styles/element-variables.scss',
'src/assets/styles/picture-variables.scss',
]
})
@ -150,6 +151,5 @@ module.exports = {
}
}
)
},
}
}

Loading…
Cancel
Save