diff --git a/package.json b/package.json index 18f8822835d221b239847a9df5cf13c286289352..10691322fcfe4768343134cdd5a89b939e39efce 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "0.1.0", "private": true, "scripts": { - "serve": "vue-cli-service serve", + "serve": "vue-cli-service serve --port 3001", "build": "vue-cli-service build" }, "dependencies": { diff --git a/src/components/menus/MyChat.vue b/src/components/menus/MyChat.vue index 101fb9bc5cfa403b6342a22cbc3a3cd69cd36665..ae00bd523164a877e72f0663788b33d2a25d9a02 100644 --- a/src/components/menus/MyChat.vue +++ b/src/components/menus/MyChat.vue @@ -76,7 +76,7 @@ export default { async initCartList() { this.loading = true; const { data: res } = await axios.get( - "http://localhost:8888/chatbot/page", + "http://120.79.36.53:8888/chatbot/page", { params: { page: this.currentPage, diff --git a/src/components/user/MyChatDetail.vue b/src/components/user/MyChatDetail.vue index 04b6fb94ff5383c555d7f3bd04fa013e7a6a5cfe..6d269f12b08dedd57e27be71b461c5f03e42cf27 100644 --- a/src/components/user/MyChatDetail.vue +++ b/src/components/user/MyChatDetail.vue @@ -54,7 +54,7 @@ export default { async initChatList() { // 调用 axios 的 get 方法,请求列表数据 const { data: res } = await axios.get( - "http://localhost:8888/chatbot/" + this.id + "http://120.79.36.53:8888/chatbot/" + this.id ); // 只要请求回来的数据,在页面渲染期间要用到,则必须转存到 data 中 if (res.code === 200) {