Explorar el Código

fix: 关联上级,上级账号可以为空

Ritchie hace 1 año
padre
commit
577dbdf991
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      src/views/relationAdmin/index.vue

+ 3 - 0
src/views/relationAdmin/index.vue

@@ -35,6 +35,9 @@ export default {
         const managerId = ref('');
         const relationUsername = ref('');
         const onSubmit = async () => {
+            if (!relationUsername.value) {
+                relationUsername.value = '';
+            }
             // 提交表单
             const { data } = await setRelationAdmin(username.value, managerId.value, relationUsername.value);