Browse Source

update port

SyuanYu 1 month ago
parent
commit
64787499dc
1 changed files with 7 additions and 7 deletions
  1. 7 7
      frontend/src/views/main/KnowledgeGraph.vue

+ 7 - 7
frontend/src/views/main/KnowledgeGraph.vue

@@ -8,7 +8,7 @@ let ws;
 
 onMounted(() => {
   // 建立 WebSocket 連接
-  ws = new WebSocket("wss://cmm.ai:8083/ws");
+  ws = new WebSocket("wss://cmm.ai:8075/ws");
   // ws = new WebSocket("wss://cmm.ai:8082/ws"); // 測試用
 
   // 當連接開啟時
@@ -64,7 +64,7 @@ async function getStage() {
   }
 
   searchLoading.value = true;
-  let url = `https://cmm.ai:8083/get_stage3?kw=${kwVal.value}&region=${regionsVal.value}&language=${languageVal.value}`;
+  let url = `https://cmm.ai:8075/get_stage3?kw=${kwVal.value}&region=${regionsVal.value}&language=${languageVal.value}`;
 
   try {
     let response = await axios.get(url);
@@ -96,7 +96,7 @@ async function getStage() {
 
 // 取得 node 層數
 async function getNodeNum() {
-  let url = `https://cmm.ai:8083/get_node_num3?kw=${kwVal.value}&region=${regionsVal.value}&language=${languageVal.value}&stage=${maxStage.value}`;
+  let url = `https://cmm.ai:8075/get_node_num3?kw=${kwVal.value}&region=${regionsVal.value}&language=${languageVal.value}&stage=${maxStage.value}`;
 
   try {
     let response = await axios.get(url);
@@ -131,9 +131,9 @@ async function insertKw(type = "") {
 
   // 新增層級
   if (type === "stage") {
-    url = `https://cmm.ai:8083/insert_kw3_2?kw=${kwVal.value}&region=${regionsVal.value}&language=${languageVal.value}&email=${email}`;
+    url = `https://cmm.ai:8075/insert_kw3_2?kw=${kwVal.value}&region=${regionsVal.value}&language=${languageVal.value}&email=${email}`;
   } else {
-    url = `https://cmm.ai:8083/insert_kw3?kw=${kwVal.value}&region=${regionsVal.value}&language=${languageVal.value}&email=${email}`;
+    url = `https://cmm.ai:8075/insert_kw3?kw=${kwVal.value}&region=${regionsVal.value}&language=${languageVal.value}&email=${email}`;
   }
 
   try {
@@ -165,7 +165,7 @@ let graphContent = ref(""); // html code
 async function getHtml() {
   console.log("getHtml");
 
-  let url = `https://cmm.ai:8083/get_html3?kw=${kwVal.value}&region=${regionsVal.value}&language=${languageVal.value}&stage=${stageVal.value}`;
+  let url = `https://cmm.ai:8075/get_html3?kw=${kwVal.value}&region=${regionsVal.value}&language=${languageVal.value}&stage=${stageVal.value}`;
 
   try {
     let response = await axios.get(url);
@@ -216,7 +216,7 @@ let stateList = reactive([]);
 async function getKwStateList() {
   let email = localStorage.getItem("email");
 
-  let url = `https://cmm.ai:8083/get_user_kw_state3?email=${email}`;
+  let url = `https://cmm.ai:8075/get_user_kw_state3?email=${email}`;
 
   try {
     let response = await axios.get(url);