panhui 3 years ago
parent
commit
3ab805db70
2 changed files with 3 additions and 3 deletions
  1. 2 2
      src/components/common/LoginForm.vue
  2. 1 1
      src/main.ts

+ 2 - 2
src/components/common/LoginForm.vue

@@ -47,8 +47,8 @@
             <n-el class="agree mt-9 text-center text-xs">
                 <n-checkbox v-model:checked="agree">
                     已阅读并同意
-                    <span class="text-black dark:text-white" @click.stop="">《用户服务协议》</span>和
-                    <span class="text-black dark:text-white" @click.stop="">《平台隐私协议》</span>
+                    <span class="prim" @click.stop="">《用户服务协议》</span>和
+                    <span class="prim" @click.stop="">《平台隐私协议》</span>
                 </n-checkbox>
             </n-el>
         </n-form>

+ 1 - 1
src/main.ts

@@ -55,7 +55,7 @@ if (query.code) {
         })
         .catch(e => {
             console.log(e)
-            if (e.message === 'code been used') {
+            if (e.message.indexOf('code been used') !== -1) {
                 if (isWechat) {
                     fetchRedirectUrl().then(res => {
                         const str = String(res).replace(