fix: BUG修改

This commit is contained in:
kun 2024-05-22 21:47:18 +08:00
parent 93154c6754
commit 0e8814c626
2 changed files with 3 additions and 4 deletions

View File

@ -71,7 +71,7 @@
this.init(this.saveForm);
if (this.type == "user") {
uni.reLaunch({
url: '/pages/projectEnd/projectIndex/projectIndex'
url: '/pages/projectEnd/projectIndex/projectIndex?fromPage=loginPage'
})
} else if (this.type == "supplier") {
uni.reLaunch({
@ -213,7 +213,6 @@
})
});
// #endif
uni.setStorageSync('wflow-token', data.token);
uni.setStorageSync('account', this.formData.account);
uni.setStorageSync('password', this.formData.password);

View File

@ -263,7 +263,7 @@
uni.removeStorageSync('buildObj')
}
},
onLoad() {
onLoad(options) {
var userInfo = JSON.parse(uni.getStorageSync('userInfo'))
console.log('userInfo===========', userInfo)
this.userInfo = userInfo
@ -271,7 +271,7 @@
this.styType = userInfo.styleType
this.systemInfo = uni.getStorageSync('systemInfo')
this.getSystemLogoConfig()
if(!this.userInfo.personMail){
if(!this.userInfo.personMail && options.fromPage && options.fromPage == 'loginPage'){
this.checkInfoComplete()
}
// #ifdef APP-PLUS