Ver código fonte

系统配置默认默认配置不可删除

wangwei 3 anos atrás
pai
commit
6290eb2952
1 arquivos alterados com 3 adições e 0 exclusões
  1. 3 0
      src/views/general/config/index.vue

+ 3 - 0
src/views/general/config/index.vue

@@ -221,6 +221,9 @@
       }
 
       function createActions(record: EditRecordRow): ActionItem[] {
+        if (record.id <= 9) {
+          return [];
+        }
         return [
           {
             label: '',