Skip to content

Commit 5f3e6be

Browse files
committed
get me table
1 parent 09554f3 commit 5f3e6be

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

src/api/user.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@ const user = {
2727
dataSource: dataSource
2828
}
2929
);
30+
},
31+
table: function(dataSource) {
32+
return axiosInstance.get("/api/users/me/table",
33+
{
34+
params: {},
35+
dataSource: dataSource
36+
}
37+
);
3038
}
3139
};
3240

src/layouts/MainLayout.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ export default {
413413
]
414414
};
415415
416-
const tables = await metadataTableService.list(dataSourceName, 1,99999);
416+
const tables = await userService.table(dataSourceName);
417417
for (let i = 0; i < tables.length; i++) {
418418
let table = tables[i];
419419
if (table.systemable) {

src/service/userService.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ const userService = {
1414
var res = await user.menu(dataSource);
1515
return res.data;
1616
},
17+
table: async function(dataSource) {
18+
var res = await user.table(dataSource);
19+
return res.data;
20+
},
1721
getUserInfo: async function() {
1822
return LocalStorage.getItem("userInfo") || {};
1923
},

0 commit comments

Comments
 (0)