增加湖南公安项目的配置

This commit is contained in:
aixianling
2022-06-06 10:15:45 +08:00
parent 4895449771
commit 35328f3b54
2 changed files with 5 additions and 2 deletions

View File

@@ -50,7 +50,10 @@ export default {
handleLogin() {
this.$refs.loginForm.validate(v => {
if (v) {
let {name: module} = this.currentApp
let {name: module,libPath} = this.currentApp
if(/\/project\/police\//.test(libPath)){
module = 'hnjc'
}
this.getToken({...this.form, module, corpId: 'wpytYEDgAAcpXjmlYkYwKO60JDGDWrXg'}).then(() => {
this.target ? uni.reLaunch({url: this.target}) : uni.navigateBack({})
}).catch(() => 0)