Jelajahi Sumber

fix: bug修复

wzyyy 3 tahun lalu
induk
melakukan
b45175cb33

+ 4 - 4
config/proxy.ts

@@ -9,11 +9,11 @@
 export default {
   dev: {
     '/jetlinks': {
-      target: 'http://192.168.32.8:8844/',
-      ws: 'ws://192.168.32.8:8844/',
+      // target: 'http://192.168.32.8:8844/',
+      // ws: 'ws://192.168.32.8:8844/',
       // 开发环境
-      // target: 'http://120.79.18.123:8844/',
-      // ws: 'ws://120.79.18.123:8844/',
+      target: 'http://120.79.18.123:8844/',
+      ws: 'ws://120.79.18.123:8844/',
       // 测试环境
       // target: 'http://120.77.179.54:8844/',
       // ws: 'ws://120.77.179.54:8844/',

+ 5 - 5
src/pages/device/Instance/Detail/Parsing/index.tsx

@@ -262,11 +262,11 @@ const Parsing = (props: Props) => {
                   return {
                     suggestions: [
                       {
-                        label: 'test()',
-                        kind: editor.languages.CompletionItemKind['Function'],
-                        insertText: 'test()',
-                        detail: '测试语法',
-                        range: range,
+                        label: 'test()', //提示内容
+                        kind: editor.languages.CompletionItemKind['Function'], //图标
+                        insertText: 'test()', //填充
+                        detail: '这是一个测试语法', //提示的解释
+                        range: range, //范围
                       },
                     ],
                   };

+ 2 - 2
src/pages/link/Channel/Modbus/Access/bindDevice/index.tsx

@@ -96,8 +96,8 @@ const BindDevice = (props: Props) => {
         save();
       }}
       width={1300}
-      permissionCode={'link/Channel/Modbus'}
-      permission={['add', 'edit', 'view']}
+      permissionCode={'device/Instance'}
+      permission={['edit', 'view']}
     >
       <SearchComponent
         field={columns}

+ 2 - 2
src/pages/link/Channel/Opcua/Access/bindDevice/index.tsx

@@ -106,8 +106,8 @@ const BindDevice = (props: Props) => {
         save();
       }}
       width={1300}
-      permissionCode={'link/Channel/Opcua'}
-      permission={['add', 'edit', 'view']}
+      permissionCode={'device/Instance'}
+      permission={['edit', 'view']}
     >
       <SearchComponent
         field={columns}