谢杰标 2 жил өмнө
parent
commit
16f4fe0790

+ 8 - 1
pages/webview/index.vue

@@ -96,7 +96,14 @@ export default {
   },
   methods: {
     async doRequest() {
-      const res = await this.$api.refreshToken(this.options.user_account);
+      const res = await this.$http({
+        url: "/app/common/automatic/account_login",
+        method: "post",
+        noToken: true,
+        data: {
+          userAccount: this.options.user_account,
+        },
+      });
       if (res.data.code === 200) {
         uni.setStorageSync("token", res.data.data.token);
         uni.setStorageSync("user_account", this.options.user_account);