lex-xin 6 月之前
父节点
当前提交
c0c5f546a7
共有 3 个文件被更改,包括 6 次插入4 次删除
  1. 1 1
      src/TUIKit/TUIComponents/container/TUIChat/manage-components/manage.vue
  2. 4 2
      src/main.ts
  3. 1 1
      vite.config.ts

+ 1 - 1
src/TUIKit/TUIComponents/container/TUIChat/manage-components/manage.vue

@@ -1,6 +1,6 @@
 <template>
   <div>
-    <i class="icon icon-chat-setting" v-if="platform != 'daya'" @click="toggleShow"></i>
+    <i class="icon icon-chat-setting" v-if="platform == 'daya'" @click="toggleShow"></i>
     <div class="manage" :class="[isH5 ? 'manage-h5' : '']" v-if="show" ref="dialog">
       <header class="manage-header">
         <i class="icon icon-back" v-if="isH5 && !currentTab" @click="toggleShow"></i>

+ 4 - 2
src/main.ts

@@ -41,8 +41,10 @@ import { TUIComponents, TUICore, genTestUserSig } from "./TUIKit";
 console.log(import.meta.env.DEV, "import.meta.env.DEV");
 
 // 判断是否是测试环境的
-const SDKAppID = parseSearch.appId || hashSearch.appId || 1400799837; // import.meta.env.DEV ? 1400805079 : 1400799837; // 1400805079; // Your SDKAppID
-const secretKey = parseSearch.secretKey || hashSearch.secretKey || "37bfb220843e25e78768cadd0dc06756e460e55bd631354930a4149565a1d0c9"; //import.meta.env.DEV ? "c5f4ea6140128a36c842990446a2c89249ab886b5e1ea6893555aa635a0b3c30" : "37bfb220843e25e78768cadd0dc06756e460e55bd631354930a4149565a1d0c9"; //"c5f4ea6140128a36c842990446a2c89249ab886b5e1ea6893555aa635a0b3c30"; // Your secretKey
+// import.meta.env.DEV ? 1400805079 : 1400799837; // 1400805079; // Your SDKAppID
+const SDKAppID = parseSearch.appId || hashSearch.appId || 1400805079; 
+//import.meta.env.DEV ? "c5f4ea6140128a36c842990446a2c89249ab886b5e1ea6893555aa635a0b3c30" : "37bfb220843e25e78768cadd0dc06756e460e55bd631354930a4149565a1d0c9"; //"c5f4ea6140128a36c842990446a2c89249ab886b5e1ea6893555aa635a0b3c30"; // Your secretKey
+const secretKey = parseSearch.secretKey || hashSearch.secretKey || "c5f4ea6140128a36c842990446a2c89249ab886b5e1ea6893555aa635a0b3c30"; 
 const userID = parseSearch.userID; //|| "KT:140:TEACHER"; // User ID
 
 // init TUIKit

+ 1 - 1
vite.config.ts

@@ -13,7 +13,7 @@ function pathResolve(dir: string) {
 //   return path.join(__dirname, dir);
 // }
 // const proxyUrl = "https://test.lexiaoya.cn";
-const proxyUrl = "https://dev.gym.lexiaoya.cn";
+const proxyUrl = "https://test.gym.lexiaoya.cn";
 // https://vitejs.dev/config/
 export default defineConfig({
   base: "./",