更换获取方式方法

This commit is contained in:
aixianling
2023-08-15 17:09:00 +08:00
parent 2b142153d5
commit 2d12360655
7 changed files with 48 additions and 41 deletions

View File

@@ -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>