管理后台 server 使用蓝图模式,降低维护成本,降低修改功能时对其他模块的影响
This commit is contained in:
@@ -342,8 +342,10 @@
|
||||
},
|
||||
methods: {
|
||||
loadContactsData() {
|
||||
// 修改API请求路径,从 /api/contacts/ 改为 /contacts/api/
|
||||
|
||||
// 加载统计数据
|
||||
axios.get('/api/contacts/statistics')
|
||||
axios.get('/contacts/api/statistics')
|
||||
.then(response => {
|
||||
if (response.data.success) {
|
||||
this.statistics = response.data.data;
|
||||
@@ -355,7 +357,7 @@
|
||||
});
|
||||
|
||||
// 加载群组数据
|
||||
axios.get('/api/contacts/groups')
|
||||
axios.get('/contacts/api/groups')
|
||||
.then(response => {
|
||||
if (response.data.success) {
|
||||
const groups = response.data.data.groups;
|
||||
@@ -371,7 +373,7 @@
|
||||
});
|
||||
|
||||
// 加载个人联系人数据
|
||||
axios.get('/api/contacts/personal')
|
||||
axios.get('/contacts/api/personal')
|
||||
.then(response => {
|
||||
if (response.data.success) {
|
||||
const personal = response.data.data.personal;
|
||||
@@ -387,7 +389,7 @@
|
||||
});
|
||||
|
||||
// 加载公众号数据
|
||||
axios.get('/api/contacts/official')
|
||||
axios.get('/contacts/api/official')
|
||||
.then(response => {
|
||||
if (response.data.success) {
|
||||
const official = response.data.data.official;
|
||||
@@ -403,7 +405,7 @@
|
||||
});
|
||||
|
||||
// 加载公共好友数据
|
||||
axios.get('/api/contacts/public')
|
||||
axios.get('/contacts/api/public')
|
||||
.then(response => {
|
||||
if (response.data.success) {
|
||||
const publicFriends = response.data.data.public;
|
||||
|
||||
Reference in New Issue
Block a user