|
@@ -109,7 +109,7 @@ import * as jwx from "@/utils/jssdk.js"; //引入js sdk的封装
|
|
|
import { getToken, setToken, removeToken } from "@/utils/auth";
|
|
|
import { storage, storageSystem } from "@/utils/storage"; // 公共方法引用
|
|
|
import { getTenantByUser } from "@/api/system/user.js";
|
|
|
-import { decrypt } from "@/plugins/jsencrypt";
|
|
|
+import { decrypt, encrypt } from "@/plugins/jsencrypt";
|
|
|
/*----------------------------------公共变量-----------------------------------*/
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
const useStore = useStores();
|
|
@@ -276,9 +276,24 @@ function navItemClick(item) {
|
|
|
storageSystem.set("homeList", state);
|
|
|
|
|
|
if (item.path.indexOf("http") != -1) {
|
|
|
- uni.navigateTo({
|
|
|
- url: "/pages/common/webview/index?url=" + item.path,
|
|
|
- });
|
|
|
+ if(item.path.indexOf("token") > 0){
|
|
|
+ var name = JSON.parse(localStorage.getItem("storage_data"))?.data?.name
|
|
|
+ if(name){
|
|
|
+ var params = {
|
|
|
+ user:name,
|
|
|
+ time:new Date().getTime(),
|
|
|
+ form:"SAAS_MOB"
|
|
|
+ }
|
|
|
+ var jm = encrypt(JSON.stringify(params))
|
|
|
+ uni.navigateTo({
|
|
|
+ url: `/pages/common/webview/index?url=${item.path}=${encodeURIComponent(jm)}`,
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ uni.navigateTo({
|
|
|
+ url: "/pages/common/webview/index?url=" + item.path,
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
} else {
|
|
|
uni.navigateTo({
|
|
|
url: item.path,
|