From 465be8b618c1fb139d56ed779ff6f4dbc8d89b89 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 04 八月 2023 15:47:14 +0800
Subject: [PATCH] 2023-08-04

---
 src/views/mobdesign/index.jsx |   32 +++++++++++++++-----------------
 1 files changed, 15 insertions(+), 17 deletions(-)

diff --git a/src/views/mobdesign/index.jsx b/src/views/mobdesign/index.jsx
index 7c8d241..b27f0a3 100644
--- a/src/views/mobdesign/index.jsx
+++ b/src/views/mobdesign/index.jsx
@@ -48,7 +48,6 @@
 const TableComponent = asyncComponent(() => import('@/templates/sharecomponent/tablecomponent'))
 const PopView = asyncComponent(() => import('./popview'))
 
-sessionStorage.setItem('isEditState', 'true')
 sessionStorage.setItem('editMenuType', 'menu') // 缂栬緫鑿滃崟绫诲瀷
 sessionStorage.setItem('appType', 'mob')       // 搴旂敤绫诲瀷
 document.body.className = ''
@@ -89,7 +88,6 @@
     }
     
     if (!sessionStorage.getItem('UserID')) {
-      sessionStorage.removeItem('isEditState')
       sessionStorage.removeItem('editMenuType')
       sessionStorage.removeItem('appType')
       this.props.history.replace('/login')
@@ -408,7 +406,7 @@
   }
 
   getAppMessage = (MenuID) => {
-    Api.getSystemConfig({
+    Api.getCloudConfig({
       func: 's_get_keyids',
       bid: sessionStorage.getItem('appId')
     }).then(res => {
@@ -458,7 +456,7 @@
         param.timestamp = moment().format('YYYY-MM-DD HH:mm:ss')
         param.secretkey = Utils.encrypt('', param.timestamp)
 
-        Api.getSystemConfig(param).then(result => {
+        Api.getCloudConfig(param).then(result => {
           if (!result.status) {
             notification.warning({
               top: 92,
@@ -489,19 +487,19 @@
     }
     deffers = [new Promise(resolve => {
       setTimeout(() => {
-        Api.getSystemConfig({...param, typecharone: 'image'}).then(res => {
+        Api.getCloudConfig({...param, typecharone: 'image'}).then(res => {
           resolve(res.data)
         })
       }, 500)
     }), new Promise(resolve => {
       setTimeout(() => {
-        Api.getSystemConfig({...param, typecharone: 'video'}).then(res => {
+        Api.getCloudConfig({...param, typecharone: 'video'}).then(res => {
           resolve(res.data)
         })
       }, 1000)
     }), new Promise(resolve => {
       setTimeout(() => {
-        Api.getSystemConfig({...param, typecharone: 'color'}).then(res => {
+        Api.getCloudConfig({...param, typecharone: 'color'}).then(res => {
           resolve(res.data)
         })
       }, 1500)
@@ -562,7 +560,7 @@
       MenuID: MenuId
     }
 
-    Api.getSystemConfig(param).then(result => {
+    Api.getCloudConfig(param).then(result => {
       if (!result.status) {
         notification.warning({
           top: 92,
@@ -748,7 +746,7 @@
 
     _param.secretkey = Utils.encrypt(_param.LText, _param.timestamp)
 
-    Api.getSystemConfig(_param).then(res => {
+    Api.getCloudConfig(_param).then(res => {
       if (!res.status) {
         notification.warning({
           top: 92,
@@ -794,7 +792,7 @@
       MenuID: urlParam.copyMenuId
     }
 
-    Api.getSystemConfig(param).then(result => {
+    Api.getCloudConfig(param).then(result => {
       if (!result.status) {
         notification.warning({
           top: 92,
@@ -907,7 +905,7 @@
   }
 
   jointComponents = (config, navItem) => {
-    Api.getSystemConfig({
+    Api.getCloudConfig({
       func: 'sPC_Get_LongParam',
       TypeCharOne: sessionStorage.getItem('kei_no'),
       typename: sessionStorage.getItem('typename'),
@@ -1637,7 +1635,7 @@
             _param.timestamp = moment().format('YYYY-MM-DD HH:mm:ss')
             _param.secretkey = Utils.encrypt('', _param.timestamp)
             
-            Api.getSystemConfig(_param).then(res => {
+            Api.getCloudConfig(_param).then(res => {
               if (res.status) {
                 NavBar.open_edition = res.open_edition || ''
                 window.GLOB.CacheIndependent.set(NavBar.uuid, fromJS(NavBar).toJS())
@@ -1682,7 +1680,7 @@
                   kparam.timestamp = moment().format('YYYY-MM-DD HH:mm:ss')
                   kparam.secretkey = Utils.encrypt('', kparam.timestamp)
         
-                  Api.getSystemConfig(kparam).then(result => {
+                  Api.getCloudConfig(kparam).then(result => {
                     if (result.status) {
                       sessionStorage.setItem('appViewList', viewList)
                     }
@@ -1701,7 +1699,7 @@
       }).then(res => { // 椤甸潰淇濆瓨
         if (!res || !res.status) return res
 
-        return Api.getSystemConfig(param)
+        return Api.getCloudConfig(param)
       }).then(res => {
         this.setState({
           menuloading: false
@@ -1754,7 +1752,7 @@
   getRoleFields = () => {
     if (sessionStorage.getItem('sysRoles')) return
 
-    Api.getSystemConfig({func: 'sPC_Get_Roles_sModular'}).then(res => {
+    Api.getCloudConfig({func: 'sPC_Get_Roles_sModular'}).then(res => {
       if (res.status) {
         let _permFuncField = []
         let _sysRoles = []
@@ -2000,7 +1998,7 @@
       title: '纭畾璁剧疆鏈〉闈负棣栭〉鍚楋紵',
       content: '',
       onOk() {
-        Api.getSystemConfig(param).then(result => {
+        Api.getCloudConfig(param).then(result => {
           if (!result.status) {
             notification.warning({
               top: 92,
@@ -2061,7 +2059,7 @@
       title: '纭畾璁剧疆鏈〉闈负鐧诲綍椤靛悧锛�',
       content: hasLogin ? '' : '褰撳墠椤甸潰灏氭湭娣诲姞鐧诲綍缁勪欢銆�',
       onOk() {
-        Api.getSystemConfig(param).then(result => {
+        Api.getCloudConfig(param).then(result => {
           if (!result.status) {
             notification.warning({
               top: 92,

--
Gitblit v1.8.0