优化代码

This commit is contained in:
RuoYi 2023-09-01 08:46:09 +08:00
parent 5ff9cc3efb
commit 96d880f2da
4 changed files with 4 additions and 5 deletions

View File

@ -56,8 +56,7 @@ const options = ref({
],
},
placeholder: '请输入内容',
readOnly: props.readOnly,
theme: 'snow'
readOnly: props.readOnly
});
const styles = computed(() => {

View File

@ -33,7 +33,7 @@
<router-link to="/user/profile">
<el-dropdown-item>个人中心</el-dropdown-item>
</router-link>
<el-dropdown-item command="setLayout">
<el-dropdown-item command="setLayout" v-if="settingsStore.showSettings">
<span>布局设置</span>
</el-dropdown-item>
<el-dropdown-item divided command="logout">

View File

@ -10,7 +10,7 @@ export default {
/**
* 是否系统布局配置
*/
showSettings: false,
showSettings: true,
/**
* 是否显示顶部导航

View File

@ -10,7 +10,7 @@
</template>
<div>
<div class="text-center">
<userAvatar :user="state.user" />
<userAvatar />
</div>
<ul class="list-group list-group-striped">
<li class="list-group-item">