Hua 1 ヶ月 前
コミット
4216b9246c
1 ファイル変更9 行追加3 行削除
  1. 9 3
      ruoyi-ui/src/views/developer/workSpace/index.vue

+ 9 - 3
ruoyi-ui/src/views/developer/workSpace/index.vue

@@ -7,8 +7,8 @@
         <div style="text-align: center;margin-top: 4%;">
             北京金水公司
         </div>
-        <el-menu  default-active="/workSpace"  class="custom-menu" @open="handleOpen" @close="handleClose" style="width: 100%;;margin-top: 10%;" router>
-            <el-menu-item  index="/workSpace" >
+        <el-menu  default-active="/workSpace"  class="custom-menu"  style="width: 100%;;margin-top: 10%;" router>
+            <el-menu-item  index="/workSpace" @click="pushTo">
                 <svg-icon icon-class="产品工作台" style="height: 1rem;width:1rem;"/>
                 <span style="margin-left: 2%;">工作台</span>
             </el-menu-item>
@@ -52,7 +52,13 @@
 </template>
 <script setup>
 import { ref, onMounted } from 'vue';
-
+const router = useRouter();
+function pushTo(){
+    router.push('/workSpace');
+}
+onMounted(() => {
+    pushTo()
+});
 </script>
 <style scoped>