chao 3 dagen geleden
bovenliggende
commit
11fb38ecc1

File diff suppressed because it is too large
+ 0 - 0
dist/assets/Details-Pcgg8R-Y.js


File diff suppressed because it is too large
+ 0 - 0
dist/assets/admin-eERySFqw.js


File diff suppressed because it is too large
+ 0 - 0
dist/assets/index-agyb-BDk.css


File diff suppressed because it is too large
+ 0 - 0
dist/assets/index-h1aTEhiM.js


+ 2 - 2
dist/index.html

@@ -8,8 +8,8 @@
     <script>
       document.domain = "cocorobo.cn"
     </script>
-    <script type="module" crossorigin src="./assets/index-6XNwjj1-.js"></script>
-    <link rel="stylesheet" crossorigin href="./assets/index-SzpOMBnO.css">
+    <script type="module" crossorigin src="./assets/index-h1aTEhiM.js"></script>
+    <link rel="stylesheet" crossorigin href="./assets/index-agyb-BDk.css">
   </head>
   <body>
     <div id="app"></div>

+ 6 - 1
src/App.vue

@@ -66,7 +66,12 @@ onMounted(() => {
 })
 
 const linkLogin = () => {
-  top.location.href = `https://sz.edu.cn/thirdauth/oauth2/authorize?service=initService&scope=all&response_type=code&app_id=f03970962b254aa29115fefd42a8eeb7&redirect_uri=https://cloud.cocorobo.cn/api`
+  
+  if(window.location.href.indexOf("localhost")>-1){
+    isShow.value = false
+  }else{
+    top.location.href = `https://sz.edu.cn/thirdauth/oauth2/authorize?service=initService&scope=all&response_type=code&app_id=f03970962b254aa29115fefd42a8eeb7&redirect_uri=https://cloud.cocorobo.cn/api`
+  }
 }
 
 // 同步登录信息

+ 18 - 10
src/components/main/feedback.vue

@@ -1,14 +1,16 @@
 <template>
     <div class="Feedback">
-        <span @click="goFeedback()">
+        <!-- <span @click="goFeedback()">
+            反馈
+        </span>
+        <br /> -->
+        <span @click="dialogVisible2 = true">
             <el-icon>
                 <ChatRound />
             </el-icon>
             <br />
-            反馈
+            AI助手
         </span>
-        <br />
-        <span @click="dialogVisible2 = true">客服</span>
     </div>
     <el-dialog v-model="dialogVisible" :before-close="handleClose" width=500>
         <template #header>
@@ -32,18 +34,24 @@
             </div>
         </template>
     </el-dialog>
-    <el-drawer v-model="dialogVisible2" width="100%" :direction="rtl" :size="Full_Screen?'  100%':'30%'" :with-header="false">
-        <div slot="title" style="text-align: right;"> 
-            <img style="cursor: pointer;width: 24px;" :src="!Full_Screen?FullScreen:noFullScreen" @click="Full_Screen = !Full_Screen" alt="">
-        </div>
+    <el-drawer v-model="dialogVisible2" width="100%" :direction="rtl" :size="Full_Screen ? '  100%' : '30%'">
+        <template #header="{ close, titleId, titleClass }">
+            <div slot="title" style="display: flex; align-items: center;">
+                <img style="cursor: pointer;width: 24px;margin-left: 15px;" :src="!Full_Screen ? FullScreen : noFullScreen"
+                    @click="Full_Screen = !Full_Screen" alt="">
+
+            </div>
+        </template>
         <div style="height: calc(100% - 32px);">
-            <iframe width="100%" height="100%" src="https://aichat.cocorobo.cn/#/?id=335951a7-65ec-40e9-ae91-2971464ade4e&type=agent" frameborder="0" scrolling="no"></iframe>
+            <iframe width="100%" height="100%"
+                src="https://aichat.cocorobo.cn/#/?id=335951a7-65ec-40e9-ae91-2971464ade4e&type=agent" frameborder="0"
+                scrolling="no"></iframe>
         </div>
     </el-drawer>
 </template>
 <script setup>
 import { ref, onMounted } from 'vue';
-import { ChatRound } from '@element-plus/icons-vue'
+import { ChatRound, Close } from '@element-plus/icons-vue'
 import { ElMessage } from 'element-plus'
 import FullScreen from '@/assets/icon/fullScreen.png'
 import noFullScreen from '@/assets/icon/nofullScreen.png'

+ 1 - 1
src/views/main.vue

@@ -1,7 +1,7 @@
 <template>
   <div style="height:100%">
     <Header></Header>
-    <div class="container" v-if="isLogin">
+    <div class="container" v-if="!isLogin">
       <div class="container-left" :style="leftShow ? { width: 0 } : { width: '240px' }">
         <div class="container-left-top" @click="dialogVisible1 = !dialogVisible1">
           <span>

Some files were not shown because too many files changed in this diff