💥 feat(配置): logo改成后端地址拼接、是否开启图片验证码和应用名称改为在线获取,升级1.0.25版本

This commit is contained in:
风花一世月 2024-07-04 22:46:18 +08:00
parent ad4b621978
commit 077e37990e
4 changed files with 96 additions and 15 deletions

View File

@ -2,8 +2,8 @@
"name" : "物联网可视化",
"appid" : "__UNI__604B8F1",
"description" : "",
"versionName" : "1.0.23",
"versionCode" : 1023,
"versionName" : "1.0.25",
"versionCode" : 1025,
"transformPx" : false,
/* 5+App */
"app-plus" : {

View File

@ -10,6 +10,35 @@ export default {
// 消息模块
newApi:require("./new.js").default,
// 获取配置(获取应用名称)
getAppConfig(data){
return new Promise((resolve, reject) => {
request.customRequest({
url: '/admin/admin/site/config',
method: 'GET',
},data)
.then((res) =>{
resolve(res);
}).catch(err =>{
reject(err);
})
})
},
// 获取登录配置(是否开启密码登录的图片验证码)
getLoginConfig(data){
return new Promise((resolve, reject) => {
request.customRequest({
url: '/user/admin/site/loginConfig',
method: 'GET',
},data)
.then((res) =>{
resolve(res);
}).catch(err =>{
reject(err);
})
})
},
// 获取图片验证码
getImgCode(data){
return new Promise((resolve, reject) => {

File diff suppressed because one or more lines are too long

View File

@ -87,7 +87,7 @@
teamList:data.teamList,
activeTeam:{
id:1,
name:'IoT-Fast平台',
name:'物联网可视化',
imgPath:''
},
teamIndex:0,
@ -100,6 +100,13 @@
}
},
onLoad() {
uni.getStorage({
key:'appName',
}).then(res => {
if(res.length==2){
this.activeTeam.name = res[1].data;
}
})
this.getUserInfo();
this.getUserMenu();
this.tabIndex = 1;