From 56071bdbf40fc24cebaa66172d301814b5538069 Mon Sep 17 00:00:00 2001 From: helloworld180 <1678854362@qq.com> Date: Wed, 18 Dec 2024 23:11:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=8F=E8=B0=B1=E6=A0=91=E5=AF=B9=E6=8E=A5?= =?UTF-8?q?=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/axiosConfig.js | 2 +- src/views/space/familyTree.vue | 115 ++++++--- src/views/space/familyTree1.vue | 407 ++++++++++---------------------- vue.config.js | 6 +- 4 files changed, 209 insertions(+), 321 deletions(-) diff --git a/src/utils/axiosConfig.js b/src/utils/axiosConfig.js index df07b0c2..0677c327 100644 --- a/src/utils/axiosConfig.js +++ b/src/utils/axiosConfig.js @@ -5,7 +5,7 @@ import {getToken} from '@/token/auth' // 注意这里使用了解构赋值来导 // 创建axios实例 const service = axios.create({ // 去vue.config.js文件改baseurl!! - baseURL: '/api', // 注意!! 这里全局统一加上了 '/api' 前缀,但是vue.config.js文件在发送请求时去掉了/api,所以页面的请求接口若有/api还是要携带/api + baseURL: 'http://10.133.25.59:8083/loveforest/api', // 注意!! 这里全局统一加上了 '/api' 前缀,但是vue.config.js文件在发送请求时去掉了/api,所以页面的请求接口若有/api还是要携带/api timeout: 5000, // 请求超时时间 }); diff --git a/src/views/space/familyTree.vue b/src/views/space/familyTree.vue index fa2dd958..2fe17dc0 100644 --- a/src/views/space/familyTree.vue +++ b/src/views/space/familyTree.vue @@ -5,7 +5,7 @@
添加祖辈信息 编辑祖辈信息 - 保存族谱 +
@@ -15,9 +15,9 @@ :collapse-enabled="true" node-text="name" > -