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