- 新增 invoice_title、showcase、wallet_log 模型及对应语言包 - 新增后台控制器、视图及搜索字段配置 - 修复服务类目删除保护逻辑 - 优化后台登录页面文案及样式 - 新增前端角色切换逻辑及页面拦截 - 新增 SVG 图标及样式变量 - 修复接口权限及下拉框默认值问题
35 行
771 B
Vue
35 行
771 B
Vue
<template>
|
|
<view class="master-workbench-page">
|
|
<MasterWorkbenchView ref="workbenchRef" />
|
|
<YjyfMasterTabBar :current="3" />
|
|
</view>
|
|
</template>
|
|
|
|
<script setup>
|
|
import { ref } from 'vue';
|
|
import { onShow } from '@dcloudio/uni-app';
|
|
import MasterWorkbenchView from '@/components/master/MasterWorkbenchView.vue';
|
|
import YjyfMasterTabBar from '@/components/YjyfMasterTabBar.vue';
|
|
import { isLogin } from '@/utils/request.js';
|
|
import { setRole } from '@/utils/role.js';
|
|
|
|
const workbenchRef = ref(null);
|
|
|
|
onShow(() => {
|
|
if (isLogin()) {
|
|
setRole('master');
|
|
}
|
|
if (workbenchRef.value?.load) {
|
|
workbenchRef.value.load();
|
|
}
|
|
});
|
|
</script>
|
|
|
|
<style scoped>
|
|
.master-workbench-page {
|
|
height: 100vh;
|
|
overflow: hidden;
|
|
background: #F5F6F8;
|
|
}
|
|
</style>
|