Browse Source

🎈 perf:优化部分样式

Pchen. 8 months ago
parent
commit
da4d9ffff6
2 changed files with 7 additions and 4 deletions
  1. 1 0
      src/App.vue
  2. 6 4
      src/pages/face/index.vue

+ 1 - 0
src/App.vue

@@ -53,6 +53,7 @@ async function GetAppVersion() {
       title: '版本更新',
       title: '版本更新',
       escToClose: false,
       escToClose: false,
       maskClosable: false,
       maskClosable: false,
+      width: '300px',
       content: `发现新版本,是否立即刷新页面?\n${res.data?.msg ?? ''}`,
       content: `发现新版本,是否立即刷新页面?\n${res.data?.msg ?? ''}`,
       onBeforeOk: () => {
       onBeforeOk: () => {
         window.location.reload()
         window.location.reload()

+ 6 - 4
src/pages/face/index.vue

@@ -7,7 +7,7 @@
             </div>
             </div>
 
 
             <a-verification-code size="large" style="width: 300px" v-model="face_form.face_code" :formatter="formatCode"
             <a-verification-code size="large" style="width: 300px" v-model="face_form.face_code" :formatter="formatCode"
-                @finish="getUserInfo" :error="code_error" :readonly="buttonLoading"/>
+                @finish="getUserInfo" :error="code_error" :readonly="buttonLoading" />
             <div class="inputTip">请输入人脸采集码</div>
             <div class="inputTip">请输入人脸采集码</div>
 
 
             <a-button type="primary" shape="round" size="large" @click="getUserInfo"
             <a-button type="primary" shape="round" size="large" @click="getUserInfo"
@@ -68,7 +68,7 @@ const getUserInfo = async () => {
     try {
     try {
         buttonLoading.value = true
         buttonLoading.value = true
         const face_code = face_form.face_code
         const face_code = face_form.face_code
-        if (!face_code || face_code.length !== 6 )
+        if (!face_code || face_code.length !== 6)
             return Message.error('请将信息填写完整')
             return Message.error('请将信息填写完整')
 
 
         const res = await BeginFaceReco({ face_code })
         const res = await BeginFaceReco({ face_code })
@@ -88,8 +88,8 @@ const getUserInfo = async () => {
 
 
 // 预加载模型
 // 预加载模型
 
 
-onMounted(()=> {
-    if(route.query.code) {
+onMounted(() => {
+    if (route.query.code) {
         face_form.face_code = formatCode(route.query.code)
         face_form.face_code = formatCode(route.query.code)
         getUserInfo()
         getUserInfo()
     }
     }
@@ -103,6 +103,8 @@ onMounted(()=> {
     background: linear-gradient(to right, #74ebd5, #ACB6E5);
     background: linear-gradient(to right, #74ebd5, #ACB6E5);
     display: flex;
     display: flex;
     flex-direction: column;
     flex-direction: column;
+    font-family: 'Arial', sans-serif;
+    text-align: center;
     align-items: center;
     align-items: center;
     justify-content: center;
     justify-content: center;