架构修改
Showing
4 changed files
with
3 additions
and
12 deletions
1 | { | 1 | { |
2 | "name": "js.rent", | 2 | "name": "bdcdj-web", |
3 | "version": "4.4.0", | 3 | "version": "4.4.0", |
4 | "description": "HOUTAI", | 4 | "description": "HOUTAI", |
5 | "author": "psh", | 5 | "author": "psh", |
... | @@ -18,9 +18,7 @@ | ... | @@ -18,9 +18,7 @@ |
18 | "normalize.css": "7.0.0", | 18 | "normalize.css": "7.0.0", |
19 | "nprogress": "0.2.0", | 19 | "nprogress": "0.2.0", |
20 | "vue": "2.6.10", | 20 | "vue": "2.6.10", |
21 | "vue-pdf": "^4.3.0", | ||
22 | "vue-router": "3.0.2", | 21 | "vue-router": "3.0.2", |
23 | "vuedraggable": "2.20.0", | ||
24 | "vuex": "3.1.0" | 22 | "vuex": "3.1.0" |
25 | }, | 23 | }, |
26 | "devDependencies": { | 24 | "devDependencies": { |
... | @@ -74,4 +72,4 @@ | ... | @@ -74,4 +72,4 @@ |
74 | "type": "git", | 72 | "type": "git", |
75 | "url": "git+https://github.com/PanJiaChen/vue-element-admin.git" | 73 | "url": "git+https://github.com/PanJiaChen/vue-element-admin.git" |
76 | } | 74 | } |
77 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
75 | } | ... | ... |
1 | <template> | 1 | <template> |
2 | <div :class="classObj" class="app-wrapper"> | 2 | <div :class="classObj" class="app-wrapper"> |
3 | <div v-if="device === 'mobile' && sidebar.opened" class="drawer-bg" @click="handleClickOutside" /> | ||
4 | <sidebar class="sidebar-container" /> | 3 | <sidebar class="sidebar-container" /> |
5 | <div :class="{ hasTagsView: needTagsView }" class="main-container"> | 4 | <div :class="{ hasTagsView: needTagsView }" class="main-container"> |
6 | <div :class="{ 'fixed-header': fixedHeader }"> | 5 | <div :class="{ 'fixed-header': fixedHeader }"> |
... | @@ -27,7 +26,6 @@ export default { | ... | @@ -27,7 +26,6 @@ export default { |
27 | computed: { | 26 | computed: { |
28 | ...mapState({ | 27 | ...mapState({ |
29 | sidebar: state => state.app.sidebar, | 28 | sidebar: state => state.app.sidebar, |
30 | device: state => state.app.device, | ||
31 | needTagsView: state => state.settings.tagsView, | 29 | needTagsView: state => state.settings.tagsView, |
32 | fixedHeader: state => state.settings.fixedHeader | 30 | fixedHeader: state => state.settings.fixedHeader |
33 | }), | 31 | }), | ... | ... |
... | @@ -5,8 +5,6 @@ const state = { | ... | @@ -5,8 +5,6 @@ const state = { |
5 | opened: Cookies.get('sidebarStatus') ? !!+Cookies.get('sidebarStatus') : true, | 5 | opened: Cookies.get('sidebarStatus') ? !!+Cookies.get('sidebarStatus') : true, |
6 | withoutAnimation: false | 6 | withoutAnimation: false |
7 | }, | 7 | }, |
8 | device: 'desktop', | ||
9 | // size: Cookies.get('size') || 'default' | ||
10 | size: 'small' | 8 | size: 'small' |
11 | } | 9 | } |
12 | 10 | ||
... | @@ -25,9 +23,6 @@ const mutations = { | ... | @@ -25,9 +23,6 @@ const mutations = { |
25 | state.sidebar.opened = false | 23 | state.sidebar.opened = false |
26 | state.sidebar.withoutAnimation = withoutAnimation | 24 | state.sidebar.withoutAnimation = withoutAnimation |
27 | }, | 25 | }, |
28 | TOGGLE_DEVICE: (state, device) => { | ||
29 | state.device = device | ||
30 | }, | ||
31 | SET_SIZE: (state, size) => { | 26 | SET_SIZE: (state, size) => { |
32 | state.size = size | 27 | state.size = size |
33 | Cookies.set('size', size) | 28 | Cookies.set('size', size) | ... | ... |
... | @@ -5,7 +5,7 @@ const defaultSettings = require('./src/settings.js') | ... | @@ -5,7 +5,7 @@ const defaultSettings = require('./src/settings.js') |
5 | function resolve (dir) { | 5 | function resolve (dir) { |
6 | return path.join(__dirname, dir) | 6 | return path.join(__dirname, dir) |
7 | } | 7 | } |
8 | const name = defaultSettings.title || '管理系统' // page title | 8 | const name = defaultSettings.title |
9 | const port = process.env.port || process.env.npm_config_port || 8888 // dev port | 9 | const port = process.env.port || process.env.npm_config_port || 8888 // dev port |
10 | 10 | ||
11 | // All configuration item explanations can be find in https://cli.vuejs.org/config/ | 11 | // All configuration item explanations can be find in https://cli.vuejs.org/config/ | ... | ... |
-
Please register or sign in to post a comment