diff --git a/package.json b/package.json index d5362a89..c295c1fb 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "eslint-plugin-vue": "^7.17.0", "husky": "^7.0.2", "prettier": "^2.3.2", + "qrcode.vue": "3.3.0", "vue": "^3.2.6", "vue-i18n": "^9.1.7", "vue-loading-overlay": "^4.0", diff --git a/src/i18n/zh/auth/index.ts b/src/i18n/zh/auth/index.ts new file mode 100644 index 00000000..50eeb27b --- /dev/null +++ b/src/i18n/zh/auth/index.ts @@ -0,0 +1,7 @@ +import title from './title'; +import message from './message'; + +export default { + title, + message +}; diff --git a/src/i18n/zh/auth/message.ts b/src/i18n/zh/auth/message.ts new file mode 100644 index 00000000..4cae18e7 --- /dev/null +++ b/src/i18n/zh/auth/message.ts @@ -0,0 +1,3 @@ +export default { + scanToLogin: '使用微信扫码关注公众号「知数云」即可登录/注册' +}; diff --git a/src/i18n/zh/auth/title.ts b/src/i18n/zh/auth/title.ts new file mode 100644 index 00000000..967d2115 --- /dev/null +++ b/src/i18n/zh/auth/title.ts @@ -0,0 +1,3 @@ +export default { + wechatLogin: '微信登录' +}; diff --git a/src/i18n/zh/index.ts b/src/i18n/zh/index.ts index 18d258bc..0a8e6aba 100644 --- a/src/i18n/zh/index.ts +++ b/src/i18n/zh/index.ts @@ -1,7 +1,9 @@ import common from './common/index'; import content from './content/index'; +import auth from './auth/index'; export default { common, - content + content, + auth }; diff --git a/src/layouts/Auth.vue b/src/layouts/Auth.vue index 8278e7a8..1ea793c9 100644 --- a/src/layouts/Auth.vue +++ b/src/layouts/Auth.vue @@ -1,13 +1,18 @@ diff --git a/src/pages/content/article/Detail.vue b/src/pages/content/article/Detail.vue index 89375472..e7f28b67 100644 --- a/src/pages/content/article/Detail.vue +++ b/src/pages/content/article/Detail.vue @@ -16,8 +16,8 @@ import { Breadcrumb, Loading, SuccessInfo } from '@/components/common/index'; import { defaultOptions } from '@/settings/editor'; import '@/libs/vditor/assets/scss/index.scss'; import { defineComponent } from 'vue'; -import { ArticleService } from '@/services'; -import { IArticle, IArticleDetailResponse } from '@/services/article/types'; +import ArticleService from '@/services/content/article/service'; +import { IArticle, IArticleDetailResponse } from '@/services/content/article/types'; interface IData { id: string | string[]; diff --git a/src/pages/content/article/Index.vue b/src/pages/content/article/Index.vue index 2b4a4742..22d53ed2 100644 --- a/src/pages/content/article/Index.vue +++ b/src/pages/content/article/Index.vue @@ -25,8 +25,8 @@