"redis/entrypoint.sh" did not exist on "5c5c7946bcb8ecee002c69c68c5bedb0b8130bf6"
Commit dc06204c authored by 张俊's avatar 张俊

fix(全局): 为配置菜单增加提示及关闭工单刷新页面

parent 611f2376
......@@ -3,6 +3,8 @@ import { createApp } from "vue";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import { ElMessage } from "element-plus";
import mavonEditor from "mavon-editor";
import "mavon-editor/dist/css/index.css";
import locale from "element-plus/lib/locale/lang/zh-cn";
......@@ -89,6 +91,11 @@ Promise.all([getUser(), getMenu("1e99371c-187f-4966-94cf-32f116f42ce6")])
if (res[0].data.code == 200 && res[1].data.code == 200) {
//已登录则记录菜单和用户信息
let data = (res[1].data.data && res[1].data.data[0].children) || [];
if (data.length == 0) {
ElMessage.error("该用户暂未配置菜单项");
}
store.commit("setUserInfo", res[0].data.data);
// if (res[0].data.data.userType == 1) {//超管
......
......@@ -97,7 +97,7 @@
</div>
</div>
</div>
<CloseTicket v-model:visible="visible" :active_row="active_row" />
<CloseTicket v-model:visible="visible" @update:visible="getTableRows" :active_row="active_row" />
</div>
</div>
</template>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment