From 43b9e7ca662660e1a54bc680b83bdc400608d3b0 Mon Sep 17 00:00:00 2001 From: winixt Date: Thu, 23 Jun 2022 19:48:00 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=9B=B4=E6=94=B9=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- .../templates/app/pc/src/app.jsx | 4 ++-- .../{PageLoading.vue => pageLoading.vue} | 9 ++++----- .../{UserCenter.vue => userCenter.vue} | 6 +++--- packages/fes-template-vite/src/app.jsx | 4 ++-- .../src/components/pageLoading.vue} | 9 ++++----- .../src/components/userCenter.vue} | 2 +- packages/fes-template/src/app.js | 4 ++-- .../src/components/pageLoading.vue} | 9 ++++----- .../src/components/userCenter.vue} | 6 +++--- yarn.lock | 20 ++++++++++--------- 11 files changed, 37 insertions(+), 38 deletions(-) rename packages/create-fes-app/templates/app/pc/src/components/{PageLoading.vue => pageLoading.vue} (86%) rename packages/create-fes-app/templates/app/pc/src/components/{UserCenter.vue => userCenter.vue} (75%) rename packages/{fes-template/src/components/PageLoading.vue => fes-template-vite/src/components/pageLoading.vue} (86%) rename packages/{fes-template/src/components/UserCenter.vue => fes-template-vite/src/components/userCenter.vue} (93%) rename packages/{fes-template-vite/src/components/PageLoading.vue => fes-template/src/components/pageLoading.vue} (86%) rename packages/{fes-template-vite/src/components/UserCenter.vue => fes-template/src/components/userCenter.vue} (73%) diff --git a/package.json b/package.json index af9f28ed..b77573a7 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "@vuepress/plugin-docsearch": "^2.0.0-beta.37", "@vuepress/plugin-pwa": "^2.0.0-beta.37", "@vuepress/plugin-pwa-popup": "^2.0.0-beta.37", - "@webank/eslint-config-webank": "^1.2.0", + "@webank/eslint-config-webank": "^1.2.3", "chokidar": "^3.5.2", "commitizen": "^4.2.1", "cz-conventional-changelog": "^3.3.0", diff --git a/packages/create-fes-app/templates/app/pc/src/app.jsx b/packages/create-fes-app/templates/app/pc/src/app.jsx index fddc4f9e..4c95b9f9 100644 --- a/packages/create-fes-app/templates/app/pc/src/app.jsx +++ b/packages/create-fes-app/templates/app/pc/src/app.jsx @@ -1,6 +1,6 @@ import { access } from '@fesjs/fes'; -import PageLoading from '@/components/PageLoading.vue'; -import UserCenter from '@/components/UserCenter.vue'; +import PageLoading from '@/components/pageLoading.vue'; +import UserCenter from '@/components/userCenter.vue'; export const beforeRender = { loading: , diff --git a/packages/create-fes-app/templates/app/pc/src/components/PageLoading.vue b/packages/create-fes-app/templates/app/pc/src/components/pageLoading.vue similarity index 86% rename from packages/create-fes-app/templates/app/pc/src/components/PageLoading.vue rename to packages/create-fes-app/templates/app/pc/src/components/pageLoading.vue index e544021a..3d5c1cf1 100644 --- a/packages/create-fes-app/templates/app/pc/src/components/PageLoading.vue +++ b/packages/create-fes-app/templates/app/pc/src/components/pageLoading.vue @@ -8,16 +8,15 @@ import { FSpin } from '@fesjs/fes-design'; export default { components: { - FSpin + FSpin, }, setup() { - return { - }; - } + return {}; + }, }; diff --git a/packages/fes-template/src/app.js b/packages/fes-template/src/app.js index 78c1921a..a9d50b80 100644 --- a/packages/fes-template/src/app.js +++ b/packages/fes-template/src/app.js @@ -1,7 +1,7 @@ import { access as accessApi, pinia, createWatermark } from '@fesjs/fes'; import { ref, watch } from 'vue'; -import PageLoading from '@/components/PageLoading.vue'; -import UserCenter from '@/components/UserCenter.vue'; +import PageLoading from '@/components/pageLoading.vue'; +import UserCenter from '@/components/userCenter.vue'; import { useStore } from '@/store/main'; export const beforeRender = { diff --git a/packages/fes-template-vite/src/components/PageLoading.vue b/packages/fes-template/src/components/pageLoading.vue similarity index 86% rename from packages/fes-template-vite/src/components/PageLoading.vue rename to packages/fes-template/src/components/pageLoading.vue index e544021a..3d5c1cf1 100644 --- a/packages/fes-template-vite/src/components/PageLoading.vue +++ b/packages/fes-template/src/components/pageLoading.vue @@ -8,16 +8,15 @@ import { FSpin } from '@fesjs/fes-design'; export default { components: { - FSpin + FSpin, }, setup() { - return { - }; - } + return {}; + }, };