浏览代码

解码方式调整

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)
   }
 });