huangbin 4 anos atrás
pai
commit
d6fb40782a

+ 3 - 3
src/views/information/account_info/compoments/add-managers-permission/index.vue

@@ -29,7 +29,7 @@
             <a-input class="dialogInput"
                      style="width: 200px"
                      v-model:value="name"
-                     placeholder="请输入模板名称" />
+                     placeholder="请输入角色名称" />
           </a-form-item>
         </a-col>
         <a-col :span="24">
@@ -131,8 +131,8 @@ export default defineComponent({
                     });
                 }
             });
-            if (!name) {
-                message.error('请输入模板名称');
+            if (!name.value) {
+                message.error('请输入角色名称');
                 return;
             }
             if (result.length === 0) {