liyongli 2 years ago
parent
commit
c7127f2a0b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/view/qh/index.vue

+ 1 - 1
src/view/qh/index.vue

@@ -154,6 +154,7 @@ const num = ref(2048);
 const num1 = ref(0.7);
 const num2 = ref(0.95);
 let chatlist = ref([]);
+let session_hash = Math.random().toString(36).substring(2);
 
 function saveText() {
   load.value = true;
@@ -174,7 +175,6 @@ function saveText() {
   //   const idnex = chatlist.value.length === 0 ? 0 : chatlist.value.length - 1;
   const t = inputText.value;
   inputText.value = '';
-  let session_hash = Math.random().toString(36).substring(2);
   createSocket(ws => {
     const data = ws.data || {};
     if (data.msg == 'send_hash')