在整理

上级 3b127d49
......@@ -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": {
......
......@@ -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,
......
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册