ming преди 1 месец
родител
ревизия
30d97afa07
променени са 1 файла, в които са добавени 1 реда и са изтрити 2 реда
  1. 1 2
      src/pages/login.vue

+ 1 - 2
src/pages/login.vue

@@ -103,7 +103,6 @@ import { reactive, getCurrentInstance, toRefs, inject, nextTick } from "vue";
 import { useStores, commonStores, xunJianStores } from "@/store/modules/index";
 /*----------------------------------公共方法引入-----------------------------------*/
 import { decrypt } from "@/utils/jsencrypt";
-import Base64 from 'base-64';
 import config from "@/config";
 import { storageSystem } from "@/utils/storage";
 /*----------------------------------公共变量-----------------------------------*/
@@ -303,7 +302,7 @@ onShow(() => {
 
 onLoad((options) => {
   if(options.xcx){
-    state.xcxData=decrypt(decodeURI(options.xcx))
+    state.xcxData=decrypt(decodeURIComponent(options.xcx))
     login(state.xcxData)
   }
 });