优化一下

This commit is contained in:
2023-01-14 21:46:15 +08:00
parent 5594dc2378
commit 0d653fd960

View File

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