Browse Source

优化代码

RuoYi 1 year ago
parent
commit
df9c850302

+ 1 - 2
src/components/Editor/index.vue

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

+ 1 - 1
src/layout/components/Navbar.vue

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

+ 1 - 1
src/settings.js

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

+ 1 - 1
src/views/system/user/profile/index.vue

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