更换获取方式方法
This commit is contained in:
@@ -20,7 +20,6 @@ export default {
|
||||
this.$router.push('/login')
|
||||
} else {
|
||||
this.$store.dispatch('getUserInfo');
|
||||
this.getMainEntry()
|
||||
sendChromeAPIMessage({url: 'bg/quiet/api/mms/userInfo', needMallId: false, data: {}}).then((res) => {
|
||||
if (res.errorCode == 1000000) {
|
||||
if (res.result.companyList[0].malInfoList.length == 1) {
|
||||
@@ -48,11 +47,7 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
async getMainEntry() {
|
||||
chrome.runtime.sendMessage({type: "init", url: this.$base + "main-entry"})
|
||||
}
|
||||
}
|
||||
methods: {}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user