瀏覽代碼

set default port 3111

thomas 3 年之前
父節點
當前提交
2eb35cd085
共有 1 個文件被更改,包括 2 次插入8 次删除
  1. 2 8
      src/components/UIClient.vue

+ 2 - 8
src/components/UIClient.vue

@@ -188,7 +188,7 @@ export default class UiClient extends Vue {
     userName: null,
     cancelRequest: null,
   }
-  url = 'http://swopt.com:3011';
+  url = 'http://localhost:3111';
   messages: Message[] = [];
   loading: boolean = false
   modal: boolean = false
@@ -199,12 +199,7 @@ export default class UiClient extends Vue {
     messages: [],
   }
 
-  dosomething = Trottle(() => {
-      const zz = 'ssss';
-      console.log('done ' + zz)
-  },1000, { trailing: false })
-  
-  startLoading() {
+    startLoading() {
     this.loading = true
   }
   endLoading() {
@@ -220,7 +215,6 @@ export default class UiClient extends Vue {
   }
   addMessage(text:string) {
     this.messages.unshift({ id: Symbol(),text })
-    // this.messages.push({ id: Symbol(), text })
   }
 
   async stopConnection() {