Commit ee08f2e2 authored by 何小勇's avatar 何小勇

配置调整

parent 265f2a0b
...@@ -46,7 +46,7 @@ export default { ...@@ -46,7 +46,7 @@ export default {
return this.$store.state.menuObj return this.$store.state.menuObj
}, },
navShow(){ navShow(){
return false||!['/','/404','/login'].includes(this.$route.path) return false||!['/404','/login'].includes(this.$route.path)
}, },
pageShow(){ pageShow(){
return false||!['/404','/login'].includes(this.$route.path) return false||!['/404','/login'].includes(this.$route.path)
......
...@@ -210,7 +210,7 @@ export default { ...@@ -210,7 +210,7 @@ export default {
if(this.$store.state.menuObj[n].menuType=='font'||this.$store.state.menuObj[n].menuType=='system'){ if(this.$store.state.menuObj[n].menuType=='font'||this.$store.state.menuObj[n].menuType=='system'){
temp = '/apaas/ui/#' temp = '/apaas/ui/#'
}else if(this.$store.state.menuObj[n].menuType=='manager'){ }else if(this.$store.state.menuObj[n].menuType=='manager'){
temp = '/apaas/manager/#' temp = '/apaas/system/uir/#'
} }
window.location.href = temp+n window.location.href = temp+n
} }
...@@ -248,7 +248,7 @@ export default { ...@@ -248,7 +248,7 @@ export default {
if(this.$store.state.menuObj[path].menuType=='font'||this.$store.state.menuObj[path].menuType=='system'){ if(this.$store.state.menuObj[path].menuType=='font'||this.$store.state.menuObj[path].menuType=='system'){
temp = '/apaas/ui/#' temp = '/apaas/ui/#'
}else if(this.$store.state.menuObj[path].menuType=='manager'){ }else if(this.$store.state.menuObj[path].menuType=='manager'){
temp = '/apaas/manager/#' temp = '/apaas/system/uir/#'
} }
window.location.href = temp+path window.location.href = temp+path
} }
......
...@@ -38,7 +38,7 @@ import menu from './router/function.js' ...@@ -38,7 +38,7 @@ import menu from './router/function.js'
//获取用户信息 //获取用户信息
function getUser() { function getUser() {
return axios.get(`/msg/system/getUserInfo`) return axios.get(`/apaas/system/getUserInfo`)
} }
//处理菜单成为对象 //处理菜单成为对象
......
...@@ -17,12 +17,12 @@ ...@@ -17,12 +17,12 @@
></span> --> ></span> -->
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item prop="yzm" class="yzm"> <!-- <el-form-item prop="yzm" class="yzm">
<div class="yzm_ctx"> <div class="yzm_ctx">
<el-input class="yzm_ipt" v-model.trim="form.yzm" placeholder="请输入验证码" :validate-event="false" @keyup.enter="login_remember_info()"></el-input> <el-input class="yzm_ipt" v-model.trim="form.yzm" placeholder="请输入验证码" :validate-event="false" @keyup.enter="login_remember_info()"></el-input>
<img class="yzm_img" title="看不清?换一张" :src="imgSrc" @click="getImg()" /> <img class="yzm_img" title="看不清?换一张" :src="imgSrc" @click="getImg()" />
</div> </div>
</el-form-item> </el-form-item> -->
<div class="apaas_button"> <div class="apaas_button">
<el-button class="btn_sub" type="primary" @click.prevent="login_remember_info()">登 录</el-button> <el-button class="btn_sub" type="primary" @click.prevent="login_remember_info()">登 录</el-button>
</div> </div>
...@@ -71,7 +71,7 @@ export default { ...@@ -71,7 +71,7 @@ export default {
}); });
}, },
getUser() { getUser() {
this.$axios.get(`/msg/system/getUserInfo`).then((res) => { this.$axios.get(`/apaas/system/getUserInfo`).then((res) => {
if (res.data.code == 200) { if (res.data.code == 200) {
this.$store.commit("setUserInfo", res.data.data); this.$store.commit("setUserInfo", res.data.data);
if (res.data.data.userType == 1) { if (res.data.data.userType == 1) {
...@@ -93,28 +93,29 @@ export default { ...@@ -93,28 +93,29 @@ export default {
}); });
}, },
login_remember_info() { login_remember_info() {
if (!this.form.userid) { // if (!this.form.userid) {
return this.$message.error("请输入账号"); // return this.$message.error("请输入账号");
} // }
if (!this.form.password) { // if (!this.form.password) {
return this.$message.error("请输入密码"); // return this.$message.error("请输入密码");
} // }
if (!this.form.yzm) { // if (!this.form.yzm) {
return this.$message.error("请输入验证码"); // return this.$message.error("请输入验证码");
} // }
this.$axios // this.$axios
.get(`/msg/system/checkCaptcha/${this.imgId}/${this.form.yzm}`) // .get(`/apaas/system/checkCaptcha/${this.imgId}/${this.form.yzm}`)
.then((res) => { // .then((res) => {
if (res.data.code == 200) { // if (res.data.code == 200) {
// this.login();
// } else {
// this.$message.error(res.data.desc);
// }
// });
this.login(); this.login();
} else {
this.$message.error(res.data.desc);
}
});
}, },
login() { login() {
this.$axios this.$axios
.post(`/msg/system/login`, { .post(`/apaas/system/login`, {
userId: this.form.userid, userId: this.form.userid,
userPassword: this.form.password, userPassword: this.form.password,
}) })
...@@ -131,7 +132,7 @@ export default { ...@@ -131,7 +132,7 @@ export default {
}); });
}, },
getImg() { getImg() {
this.$axios.get(`/msg/system/getCaptcha`).then((res) => { this.$axios.get(`/apaas/system/getCaptcha`).then((res) => {
if (res.data.code == 200) { if (res.data.code == 200) {
this.imgId = res.data.data.key; this.imgId = res.data.data.key;
this.imgSrc = res.data.data.image; this.imgSrc = res.data.data.image;
......
...@@ -157,8 +157,8 @@ var adminMenu = [ ...@@ -157,8 +157,8 @@ var adminMenu = [
{ {
menuName: "管理中心", menuName: "管理中心",
path: "/system", path: "/manage",
name:"system", name:"manage",
parentPath:null, parentPath:null,
menuType:'manager', menuType:'manager',
show: true, show: true,
...@@ -301,7 +301,7 @@ menu.forEach(e => { ...@@ -301,7 +301,7 @@ menu.forEach(e => {
//叶子层级需要加载到对应文件 //叶子层级需要加载到对应文件
//对首页做兼容 //对首页做兼容
if(e.path=='/'){ if(e.path=='/'){
e.component = () => import('../page/main/index/index.vue') e.component = () => import('../page/main/develop/account/index.vue')
}else{ }else{
e.component= getViews(e.path) e.component= getViews(e.path)
} }
......
...@@ -14,7 +14,7 @@ export default { ...@@ -14,7 +14,7 @@ export default {
vue() vue()
], ],
//本地运行基础路径,如:http://localhost:5173/apaas/ui/ //本地运行基础路径,如:http://localhost:5173/apaas/ui/
base: "/apaas/system/ui/", base: "/apaas/manage/ui",
clearScreen:false, clearScreen:false,
resolve:{ resolve:{
//别名,代码引入时方便引入 //别名,代码引入时方便引入
...@@ -30,16 +30,16 @@ export default { ...@@ -30,16 +30,16 @@ export default {
hmr:true,//热更新 hmr:true,//热更新
proxy: { proxy: {
// 选项写法 // 选项写法
'/msg/system':{ '/apaas/system':{
target: 'https://apaas5.wodcloud.com/msg/system', // 所要代理的目标地址 target: 'https://apaas5.wodcloud.com/apaas/system', // 所要代理的目标地址
rewrite: path => path.replace(/^\/msg\/system/, ''), // 重写传过来的path路径,比如 `/api/index/1?id=10&name=zs`(注意:path路径最前面有斜杠(/),因此,正则匹配的时候不要忘了是斜杠(/)开头的;选项的 key 也是斜杠(/)开头的) rewrite: path => path.replace(/^\/apaas\/system/, ''), // 重写传过来的path路径,比如 `/api/index/1?id=10&name=zs`(注意:path路径最前面有斜杠(/),因此,正则匹配的时候不要忘了是斜杠(/)开头的;选项的 key 也是斜杠(/)开头的)
changeOrigin: true, // true/false, Default: false - changes the origin of the host header to the target URL changeOrigin: true, // true/false, Default: false - changes the origin of the host header to the target URL
secure: false,//解决证书缺失问题 secure: false,//解决证书缺失问题
} }
} }
}, },
build:{ build:{
outDir:'dist/apaas/system/ui',//打包输出文件夹 outDir:'dist/apaas/manage/ui',//打包输出文件夹
assetsDir:'static',//打包输出静态文件 assetsDir:'static',//打包输出静态文件
}, },
......
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