优化一下
This commit is contained in:
@@ -24,11 +24,7 @@ export const mainStore = defineStore('main', {
|
||||
})
|
||||
},
|
||||
getToken(params) {
|
||||
return http.post("/api/wxmp/token", null, {
|
||||
withoutToken: true,
|
||||
headers: {passport: "c799f2d92de34b97"},
|
||||
params: {...params}
|
||||
}).then(res => {
|
||||
return http.post("/api/wxmp/token", null, {params}).then(res => {
|
||||
if (res?.data) {
|
||||
return this.token = res.data
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user