diff --git a/.env.development b/.env.development index 39f6686..a33e5db 100644 --- a/.env.development +++ b/.env.development @@ -20,8 +20,8 @@ VITE_MOCK_DEV_SERVER=true VITE_STRICT_PORT=false # 是否启用屏幕转vw适配,可以选择 postcss-px-to-viewport-8-plugin || autofit -#VITE_POST_CSS_PX_TO_VIEWPORT8_PLUGIN="autofit" -VITE_POST_CSS_PX_TO_VIEWPORT8_PLUGIN="postcss-px-to-viewport-8-plugin" +VITE_POST_CSS_PX_TO_VIEWPORT8_PLUGIN="autofit" +#VITE_POST_CSS_PX_TO_VIEWPORT8_PLUGIN="postcss-px-to-viewport-8-plugin" # 是否在打包时使用cdn替换本地库 替换 true 不替换 false VITE_CDN=false diff --git a/src/App.vue b/src/App.vue index 3b56c5f..cb4a71b 100644 --- a/src/App.vue +++ b/src/App.vue @@ -9,7 +9,7 @@ diff --git a/src/store/modules/login.ts b/src/store/modules/login.ts new file mode 100644 index 0000000..030f8bb --- /dev/null +++ b/src/store/modules/login.ts @@ -0,0 +1,12 @@ +import { defineStore } from 'pinia'; + +export const useLoginStore = defineStore('loginStore', { + state: () => ({ + username: '', + password: '', + rememberMe: false, + isLoading: false, + }), + getters: {}, + actions: {}, +}); diff --git a/src/views/login/components/login-header.vue b/src/views/login/components/login-header.vue new file mode 100644 index 0000000..5c1a2b2 --- /dev/null +++ b/src/views/login/components/login-header.vue @@ -0,0 +1,30 @@ + + + + + diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 98bb6bb..90d263c 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -1,13 +1,24 @@