Skip to content

Commit b33641f

Browse files
committed
重构后台管理模块
1 parent 55b5b66 commit b33641f

File tree

108 files changed

+5678
-4615
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+5678
-4615
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,5 @@ build/
3131

3232
### VS Code ###
3333
.vscode/
34+
35+
/blog-cms-tmp

blog-cms/package-lock.json

Lines changed: 3297 additions & 2216 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

blog-cms/package.json

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,28 @@
77
"build": "vue-cli-service build"
88
},
99
"dependencies": {
10-
"axios": "^0.21.2",
10+
"axios": "^0.24.0",
1111
"core-js": "^3.6.5",
1212
"echarts": "^4.9.0",
13-
"element-ui": "^2.13.2",
13+
"element-ui": "2.13.2",
1414
"lodash": "^4.17.21",
1515
"mavon-editor": "^2.9.1",
1616
"moment": "^2.27.0",
17+
"normalize.css": "7.0.0",
1718
"nprogress": "^0.2.0",
1819
"vue": "^2.6.11",
1920
"vue-router": "^3.2.0",
2021
"vuex": "^3.4.0"
2122
},
2223
"devDependencies": {
23-
"@vue/cli-plugin-babel": "~4.4.0",
24-
"@vue/cli-plugin-router": "~4.4.0",
25-
"@vue/cli-plugin-vuex": "~4.4.0",
26-
"@vue/cli-service": "~4.4.0",
24+
"@vue/cli-plugin-babel": "~4.5.0",
25+
"@vue/cli-plugin-router": "~4.5.0",
26+
"@vue/cli-plugin-vuex": "~4.5.0",
27+
"@vue/cli-service": "~4.5.0",
28+
"sass": "1.26.8",
29+
"sass-loader": "8.0.2",
30+
"svg-sprite-loader": "4.1.3",
31+
"svgo": "1.2.2",
2732
"vue-template-compiler": "^2.6.11"
2833
},
2934
"browserslist": [

blog-cms/src/App.vue

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,7 @@
55
</template>
66

77
<script>
8-
import {getWebTitleSuffix} from "@/api/siteSetting";
9-
import {SAVE_WEB_TITLE_SUFFIX} from "@/store/mutations-types";
10-
118
export default {
12-
name: 'app',
13-
created() {
14-
this.getWebTitleSuffix()
15-
},
16-
methods: {
17-
getWebTitleSuffix() {
18-
getWebTitleSuffix().then(res => {
19-
if (res.code === 200) {
20-
this.$store.commit(SAVE_WEB_TITLE_SUFFIX, res.data)
21-
document.title = this.$route.meta.title + res.data
22-
}
23-
})
24-
},
25-
}
9+
name: 'App'
2610
}
2711
</script>
28-
29-
<style>
30-
31-
</style>

blog-cms/src/api/ExceptionLog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import axios from '@/plugins/axios'
1+
import axios from '@/util/request'
22

33
export function getExceptionLogList(queryInfo) {
44
return axios({

blog-cms/src/api/about.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import axios from '@/plugins/axios'
1+
import axios from '@/util/request'
22

33
export function getAbout() {
44
return axios({

blog-cms/src/api/blog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import axios from '@/plugins/axios'
1+
import axios from '@/util/request'
22

33
export function getDataByQuery(queryInfo) {
44
return axios({

blog-cms/src/api/category.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import axios from '@/plugins/axios'
1+
import axios from '@/util/request'
22

33
export function getData(queryInfo) {
44
return axios({

blog-cms/src/api/comment.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import axios from '@/plugins/axios'
1+
import axios from '@/util/request'
22

33
export function getCommentListByQuery(queryInfo) {
44
return axios({

blog-cms/src/api/dashboard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import axios from '@/plugins/axios'
1+
import axios from '@/util/request'
22

33
export function getDashboard() {
44
return axios({

0 commit comments

Comments
 (0)