Browse Source

v1.0 Finish

pull/7/head
遇见 4 years ago
parent
commit
da263bd584
  1. 2
      README.md
  2. 0
      YuJian-Blog-Server/db/config.js
  3. 61
      YuJian-Blog-Web/package-lock.json
  4. 8
      YuJian-Blog-Web/package.json
  5. 12
      YuJian-Blog-Web/src/views/Article/index.vue
  6. 3
      YuJian-Blog-Web/src/views/Home/components/Article.vue

2
README.md

@ -4,5 +4,5 @@ @@ -4,5 +4,5 @@
- [x] 基础的博客前端搭建
- [x] 基础的后端增删改查
- [ ] 博客前端的数据获取
- [x] 博客前端的数据获取
- [ ] 实现富文本编辑

0
YuJian-Blog-Server/db/config.js

61
YuJian-Blog-Web/package-lock.json generated

@ -4502,7 +4502,7 @@ @@ -4502,7 +4502,7 @@
},
"eslint": {
"version": "6.8.0",
"resolved": "https://registry.npm.taobao.org/eslint/download/eslint-6.8.0.tgz?cache=0&sync_timestamp=1591401622911&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Feslint%2Fdownload%2Feslint-6.8.0.tgz",
"resolved": "https://registry.npm.taobao.org/eslint/download/eslint-6.8.0.tgz",
"integrity": "sha1-YiYtZylzn5J1cjgkMC+yJ8jJP/s=",
"dev": true,
"requires": {
@ -4546,18 +4546,35 @@ @@ -4546,18 +4546,35 @@
},
"dependencies": {
"eslint-scope": {
"version": "5.1.0",
"resolved": "https://registry.npm.taobao.org/eslint-scope/download/eslint-scope-5.1.0.tgz",
"integrity": "sha1-0Plx3+WcaeDK2mhLI9Sdv4JgDOU=",
"version": "5.1.1",
"resolved": "https://registry.npm.taobao.org/eslint-scope/download/eslint-scope-5.1.1.tgz?cache=0&sync_timestamp=1599933651660&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Feslint-scope%2Fdownload%2Feslint-scope-5.1.1.tgz",
"integrity": "sha1-54blmmbLkrP2wfsNUIqrF0hI9Iw=",
"dev": true,
"requires": {
"esrecurse": "^4.1.0",
"esrecurse": "^4.3.0",
"estraverse": "^4.1.1"
}
},
"esrecurse": {
"version": "4.3.0",
"resolved": "https://registry.npm.taobao.org/esrecurse/download/esrecurse-4.3.0.tgz?cache=0&sync_timestamp=1598898255610&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fesrecurse%2Fdownload%2Fesrecurse-4.3.0.tgz",
"integrity": "sha1-eteWTWeauyi+5yzsY3WLHF0smSE=",
"dev": true,
"requires": {
"estraverse": "^5.2.0"
},
"dependencies": {
"estraverse": {
"version": "5.2.0",
"resolved": "https://registry.npm.taobao.org/estraverse/download/estraverse-5.2.0.tgz?cache=0&sync_timestamp=1596642998635&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Festraverse%2Fdownload%2Festraverse-5.2.0.tgz",
"integrity": "sha1-MH30JUfmzHMk088DwVXVzbjFOIA=",
"dev": true
}
}
},
"globals": {
"version": "12.4.0",
"resolved": "https://registry.npm.taobao.org/globals/download/globals-12.4.0.tgz?cache=0&sync_timestamp=1591426170432&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fglobals%2Fdownload%2Fglobals-12.4.0.tgz",
"resolved": "https://registry.npm.taobao.org/globals/download/globals-12.4.0.tgz?cache=0&sync_timestamp=1608438490211&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fglobals%2Fdownload%2Fglobals-12.4.0.tgz",
"integrity": "sha1-oYgTV2pBsAokqX5/gVkYwuGZJfg=",
"dev": true,
"requires": {
@ -4565,9 +4582,9 @@ @@ -4565,9 +4582,9 @@
}
},
"import-fresh": {
"version": "3.2.1",
"resolved": "https://registry.npm.taobao.org/import-fresh/download/import-fresh-3.2.1.tgz",
"integrity": "sha1-Yz/2GFBueTr1rJG/SLcmd+FcvmY=",
"version": "3.3.0",
"resolved": "https://registry.npm.taobao.org/import-fresh/download/import-fresh-3.3.0.tgz",
"integrity": "sha1-NxYsJfy566oublPVtNiM4X2eDCs=",
"dev": true,
"requires": {
"parent-module": "^1.0.0",
@ -4582,7 +4599,7 @@ @@ -4582,7 +4599,7 @@
},
"semver": {
"version": "6.3.0",
"resolved": "https://registry.npm.taobao.org/semver/download/semver-6.3.0.tgz",
"resolved": "https://registry.npm.taobao.org/semver/download/semver-6.3.0.tgz?cache=0&sync_timestamp=1606852064928&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsemver%2Fdownload%2Fsemver-6.3.0.tgz",
"integrity": "sha1-7gpkyK9ejO6mdoexM3YeG+y9HT0=",
"dev": true
},
@ -4597,7 +4614,7 @@ @@ -4597,7 +4614,7 @@
},
"type-fest": {
"version": "0.8.1",
"resolved": "https://registry.npm.taobao.org/type-fest/download/type-fest-0.8.1.tgz",
"resolved": "https://registry.npm.taobao.org/type-fest/download/type-fest-0.8.1.tgz?cache=0&sync_timestamp=1606468844109&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ftype-fest%2Fdownload%2Ftype-fest-0.8.1.tgz",
"integrity": "sha1-CeJJ696FHTseSNJ8EFREZn8XuD0=",
"dev": true
}
@ -4657,7 +4674,7 @@ @@ -4657,7 +4674,7 @@
},
"eslint-utils": {
"version": "1.4.3",
"resolved": "https://registry.npm.taobao.org/eslint-utils/download/eslint-utils-1.4.3.tgz",
"resolved": "https://registry.npm.taobao.org/eslint-utils/download/eslint-utils-1.4.3.tgz?cache=0&sync_timestamp=1592222134559&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Feslint-utils%2Fdownload%2Feslint-utils-1.4.3.tgz",
"integrity": "sha1-dP7HxU0Hdrb2fgJRBAtYBlZOmB8=",
"dev": true,
"requires": {
@ -5098,7 +5115,7 @@ @@ -5098,7 +5115,7 @@
},
"file-entry-cache": {
"version": "5.0.1",
"resolved": "https://registry.npm.taobao.org/file-entry-cache/download/file-entry-cache-5.0.1.tgz",
"resolved": "https://registry.npm.taobao.org/file-entry-cache/download/file-entry-cache-5.0.1.tgz?cache=0&sync_timestamp=1604832267816&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffile-entry-cache%2Fdownload%2Ffile-entry-cache-5.0.1.tgz",
"integrity": "sha1-yg9u+m3T1WEzP7FFFQZcL6/fQ5w=",
"dev": true,
"requires": {
@ -5205,7 +5222,7 @@ @@ -5205,7 +5222,7 @@
},
"flat-cache": {
"version": "2.0.1",
"resolved": "https://registry.npm.taobao.org/flat-cache/download/flat-cache-2.0.1.tgz",
"resolved": "https://registry.npm.taobao.org/flat-cache/download/flat-cache-2.0.1.tgz?cache=0&sync_timestamp=1604831838291&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fflat-cache%2Fdownload%2Fflat-cache-2.0.1.tgz",
"integrity": "sha1-XSltbwS9pEpGMKMBQTvbwuwIXsA=",
"dev": true,
"requires": {
@ -10048,9 +10065,9 @@ @@ -10048,9 +10065,9 @@
"dev": true
},
"strip-json-comments": {
"version": "3.1.0",
"resolved": "https://registry.npm.taobao.org/strip-json-comments/download/strip-json-comments-3.1.0.tgz?cache=0&sync_timestamp=1586159975241&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fstrip-json-comments%2Fdownload%2Fstrip-json-comments-3.1.0.tgz",
"integrity": "sha1-djjTFCISns9EV0QACfugP5+awYA=",
"version": "3.1.1",
"resolved": "https://registry.npm.taobao.org/strip-json-comments/download/strip-json-comments-3.1.1.tgz?cache=0&sync_timestamp=1594567555399&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fstrip-json-comments%2Fdownload%2Fstrip-json-comments-3.1.1.tgz",
"integrity": "sha1-MfEoGzgyYwQ0gxwxDAHMzajL4AY=",
"dev": true
},
"stylehacks": {
@ -10115,7 +10132,7 @@ @@ -10115,7 +10132,7 @@
},
"table": {
"version": "5.4.6",
"resolved": "https://registry.npm.taobao.org/table/download/table-5.4.6.tgz",
"resolved": "https://registry.npm.taobao.org/table/download/table-5.4.6.tgz?cache=0&sync_timestamp=1609732685428&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ftable%2Fdownload%2Ftable-5.4.6.tgz",
"integrity": "sha1-EpLRlQDOP4YFOwXw6Ofko7shB54=",
"dev": true,
"requires": {
@ -10127,7 +10144,7 @@ @@ -10127,7 +10144,7 @@
"dependencies": {
"emoji-regex": {
"version": "7.0.3",
"resolved": "https://registry.npm.taobao.org/emoji-regex/download/emoji-regex-7.0.3.tgz?cache=0&sync_timestamp=1586511397703&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Femoji-regex%2Fdownload%2Femoji-regex-7.0.3.tgz",
"resolved": "https://registry.npm.taobao.org/emoji-regex/download/emoji-regex-7.0.3.tgz?cache=0&sync_timestamp=1603212180491&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Femoji-regex%2Fdownload%2Femoji-regex-7.0.3.tgz",
"integrity": "sha1-kzoEBShgyF6DwSJHnEdIqOTHIVY=",
"dev": true
},
@ -10725,9 +10742,9 @@ @@ -10725,9 +10742,9 @@
"dev": true
},
"v8-compile-cache": {
"version": "2.1.1",
"resolved": "https://registry.npm.taobao.org/v8-compile-cache/download/v8-compile-cache-2.1.1.tgz",
"integrity": "sha1-VLw83UMxe8qR413K8wWxpyN950U=",
"version": "2.2.0",
"resolved": "https://registry.npm.taobao.org/v8-compile-cache/download/v8-compile-cache-2.2.0.tgz?cache=0&sync_timestamp=1603909620959&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fv8-compile-cache%2Fdownload%2Fv8-compile-cache-2.2.0.tgz",
"integrity": "sha1-lHHvo++RKNL3xqfKOcTda1BVsTI=",
"dev": true
},
"validate-npm-package-license": {

8
YuJian-Blog-Web/package.json

@ -30,5 +30,13 @@ @@ -30,5 +30,13 @@
"postcss-px-to-viewport": "^1.1.1",
"prettier": "^1.19.1",
"vue-template-compiler": "^2.6.11"
},
"rules": {
"generator-star-spacing": "off",
"no-tabs":"off",
"no-unused-vars":"off",
"no-console":"off",
"no-irregular-whitespace":"off",
"no-debugger": "off"
}
}

12
YuJian-Blog-Web/src/views/Article/index.vue

@ -35,14 +35,16 @@ export default { @@ -35,14 +35,16 @@ export default {
...mapState(["Article"]),
},
methods: {
getArticleData: function () {
this.TopInfo.title = this.Article[this.$route.query.id].title;
this.TopInfo.content = this.Article[this.$route.query.id].content;
getArticleData() {
this.$store.dispatch("fetchArticle").then(() => {
this.TopInfo.title = this.Article[this.$route.query.id].title;
this.TopInfo.content = this.Article[this.$route.query.id].content;
});
},
},
created() {
mounted() {
this.getArticleData();
},
}
};
</script>

3
YuJian-Blog-Web/src/views/Home/components/Article.vue

@ -41,9 +41,6 @@ export default { @@ -41,9 +41,6 @@ export default {
mounted() {
this.fetchArticle();
},
activated() {
this.fetchArticle();
},
};
</script>

Loading…
Cancel
Save