Browse Source

优化前端代码

tags/v3.3.0
RuoYi 3 years ago
parent
commit
337d1bab02
  1. 2
      ruoyi-ui/package.json
  2. 3
      ruoyi-ui/src/components/SizeSelect/index.vue
  3. 2
      ruoyi-ui/src/layout/index.vue
  4. 2
      ruoyi-ui/src/store/modules/permission.js
  5. 2
      ruoyi-ui/src/utils/dict/index.js

2
ruoyi-ui/package.json

@ -56,7 +56,7 @@ @@ -56,7 +56,7 @@
"vue-count-to": "1.0.13",
"vue-cropper": "0.5.5",
"vue-router": "3.4.9",
"vue-meta": "^2.4.0",
"vue-meta": "2.4.0",
"vuedraggable": "2.24.3",
"vuex": "3.6.0"
},

3
ruoyi-ui/src/components/SizeSelect/index.vue

@ -5,8 +5,7 @@ @@ -5,8 +5,7 @@
</div>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item v-for="item of sizeOptions" :key="item.value" :disabled="size===item.value" :command="item.value">
{{
item.label }}
{{ item.label }}
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>

2
ruoyi-ui/src/layout/index.vue

@ -98,7 +98,7 @@ export default { @@ -98,7 +98,7 @@ export default {
}
.hideSidebar .fixed-header {
width: calc(100% - 54px)
width: calc(100% - 54px);
}
.mobile .fixed-header {

2
ruoyi-ui/src/store/modules/permission.js

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
import { constantRoutes } from '@/router'
import { getRouters } from '@/api/menu'
import Layout from '@/layout/index'
import ParentView from '@/components/ParentView';
import ParentView from '@/components/ParentView'
import InnerLink from '@/layout/components/InnerLink'
const permission = {

2
ruoyi-ui/src/utils/dict/index.js

@ -5,7 +5,7 @@ export default function(Vue, options) { @@ -5,7 +5,7 @@ export default function(Vue, options) {
mergeOptions(options)
Vue.mixin({
data() {
if (this.$options.dicts === undefined || this.$options.dicts === null) {
if (this.$options === undefined || this.$options.dicts === undefined || this.$options.dicts === null) {
return {}
}
const dict = new Dict()

Loading…
Cancel
Save