refactor: separate meta api for admin or not
This commit is contained in:
parent
725b78349a
commit
d0a346ed8a
14 changed files with 413 additions and 196 deletions
|
|
@ -46,7 +46,7 @@ export default defineComponent({
|
|||
|
||||
methods: {
|
||||
async init() {
|
||||
const meta = await os.api('meta', { detail: true });
|
||||
const meta = await os.api('admin/meta');
|
||||
this.proxyAccountId = meta.proxyAccountId;
|
||||
if (this.proxyAccountId) {
|
||||
this.proxyAccount = await os.api('users/show', { userId: this.proxyAccountId });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue