权限配置、默认用户、角色配置.

This commit is contained in:
许晓东
2023-05-16 21:23:45 +08:00
parent 238507de19
commit b08be2aa65
17 changed files with 137 additions and 27 deletions

View File

@@ -1,6 +1,6 @@
<template>
<div class="home">
<a-card v-action:action title="控制台默认配置" class="card-style">
<a-card title="控制台默认配置" class="card-style">
<p v-for="(v, k) in config" :key="k">{{ k }}={{ v }}</p>
</a-card>
<p></p>

View File

@@ -19,6 +19,7 @@
href="javascript:;"
class="operation-btn"
@click="openBrokerConfigDialog(record, false)"
v-action:cluster:property-config
>属性配置
</a-button>
<a-button

View File

@@ -66,6 +66,7 @@ export default {
if (res.code == 0) {
this.setToken(res.data.token);
this.setUsername(params.username);
this.setPermissions(res.data.permissions);
this.$router.push("/");
} else {
notification.error({
@@ -80,6 +81,7 @@ export default {
...mapMutations({
setToken: AUTH.SET_TOKEN,
setUsername: AUTH.SET_USERNAME,
setPermissions: AUTH.SET_PERMISSIONS,
}),
},
};