瀏覽代碼

app跳转U8问题修复

wangtao 1 周之前
父節點
當前提交
9035f5eb1d
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/pages/index.vue

+ 3 - 3
src/pages/index.vue

@@ -277,9 +277,9 @@ function navItemClick(item) {
 
     if (item.path.indexOf("http") != -1) {
       if(item.path.indexOf("token") > 0){
-        var name = JSON.parse(localStorage.getItem("storage_data"))?.data?.name
+        var name = uni.getStorageSync("storage_data").name
         if(name){
-          var params = {
+          var params = { 
               user:name,
               time:new Date().getTime(),
               form:"SAAS_mob"
@@ -288,7 +288,7 @@ function navItemClick(item) {
           //#ifdef H5 
             window.open(`${item.path}=${encodeURIComponent(jm)}?urlF=https://manager.usky.cn/mobile/#/`)
           //#endif
-          //#ifdef APP-PLUS || MP-WEIXIN
+          //#ifdef APP-PLUS || MP-WEIXIN 
             uni.navigateTo({
               url: `/pages/common/webview/index?url=${item.path}=${encodeURIComponent(jm)}?urlF=https://manager.usky.cn/mobile/#/`,
             });