zs 1 năm trước cách đây
mục cha
commit
828e1a2733
2 tập tin đã thay đổi với 3 bổ sung6 xóa
  1. 0 1
      src/views/center/index.vue
  2. 3 5
      src/views/index/index.vue

+ 0 - 1
src/views/center/index.vue

@@ -262,7 +262,6 @@ const submitForm = async (formEl) => {
     if (valid) {
       const data = cloneDeep(form.value)
       if (data.role_type) delete data.role_type
-      data.status = '0'
       const res = await store.update(data)
       if ($checkRes(res, true)) search()
     } else {

+ 3 - 5
src/views/index/index.vue

@@ -34,8 +34,7 @@
                         <el-dropdown-menu>
                           <el-dropdown-menu>
                             <el-dropdown-item @click="toOpen">管理中心</el-dropdown-item>
-                            <el-dropdown-item @click="toCenter(2)">个人中心</el-dropdown-item>
-                            <el-dropdown-item @click="toCenter(3)">我的报名</el-dropdown-item>
+                            <el-dropdown-item @click="toCenter">个人中心</el-dropdown-item>
                             <el-dropdown-item @click="toLogout">注销</el-dropdown-item>
                           </el-dropdown-menu>
                         </el-dropdown-menu>
@@ -130,9 +129,8 @@ const toOpen = async () => {
   window.location.href = import.meta.env.VITE_APP_HOME
 }
 // 基础跳转
-const toCenter = (type) => {
-  if (type == '2') router.push('/center')
-  else if (type == '3') router.push('/sign')
+const toCenter = () => {
+  router.push('/center')
 }
 // 退出登录
 const toLogout = () => {