瀏覽代碼

三期菜单开放

刘洋 1 年之前
父節點
當前提交
bb28a67703
共有 2 個文件被更改,包括 10 次插入4 次删除
  1. 9 3
      src/components/global/robot/index.vue
  2. 1 1
      src/router/modules/intelligence.js

+ 9 - 3
src/components/global/robot/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="robot">
+  <div class="robot" v-if="canShow">
     <t-tooltip content="试试点我提问~" theme="light">
       <img
         class="robot-img"
@@ -18,8 +18,14 @@
 </template>
 
 <script setup name="Robot">
-import { ref } from 'vue';
-const visible = ref(true);
+import { ref, computed } from 'vue';
+import { useRoute } from 'vue-router';
+const visible = ref(false);
+const route = useRoute();
+const BlackNames = ['Login'];
+const canShow = computed(() => {
+  return !BlackNames.includes(route.name);
+});
 </script>
 
 <style lang="less" scoped>

+ 1 - 1
src/router/modules/intelligence.js

@@ -6,7 +6,7 @@ export default {
     sort: 10,
     isModule: true,
     // alias: 'aiCustomerManage',
-    alias: 'aiCustomerManage333333333333',
+    alias: 'aiCustomerManage',
     icon: 'zhinengkefu',
   },
   children: [