diff --git a/web/src/management/hooks/useJumpLogicInfo.js b/web/src/management/hooks/useJumpLogicInfo.js
index 2cd906ff..0f02cf0c 100644
--- a/web/src/management/hooks/useJumpLogicInfo.js
+++ b/web/src/management/hooks/useJumpLogicInfo.js
@@ -3,7 +3,6 @@ import { useQuestionInfo } from './useQuestionInfo'
import { useEditStore } from '../stores/edit'
import { storeToRefs } from 'pinia'
-
// 目标题的显示逻辑提示文案
export const useJumpLogicInfo = (field) => {
const editStore = useEditStore()
diff --git a/web/src/management/pages/login/LoginPage.vue b/web/src/management/pages/login/LoginPage.vue
index 3ebe51e5..b17aa0b7 100644
--- a/web/src/management/pages/login/LoginPage.vue
+++ b/web/src/management/pages/login/LoginPage.vue
@@ -38,7 +38,7 @@
@@ -71,6 +71,8 @@ import { useRoute, useRouter } from 'vue-router'
import { ElMessage } from 'element-plus'
import 'element-plus/theme-chalk/src/message.scss'
+import { debounce as _debounce } from 'lodash-es'
+
import { getPasswordStrength, login, register } from '@/management/api/auth'
import { refreshCaptcha as refreshCaptchaApi } from '@/management/api/captcha'
import { CODE_MAP } from '@/management/api/base'
@@ -159,8 +161,8 @@ const rules = {
],
password: [
{
- validator: passwordValidator,
- trigger: 'blur'
+ validator: _debounce(passwordValidator, 500),
+ trigger: 'change'
}
],
captcha: [
@@ -311,18 +313,20 @@ const refreshCaptcha = async () => {
cursor: pointer;
:deep(> svg) {
max-height: 40px;
+ width: 120px;
+ margin-left: 20px;
}
}
}
.strength {
display: inline-block;
- width: 20%;
+ width: 30%;
height: 6px;
border-radius: 8px;
background: red;
&:not(:first-child) {
- margin-left: 10px;
+ margin-left: 8px;
}
}
}
diff --git a/web/src/management/styles/icon.scss b/web/src/management/styles/icon.scss
index f79122d3..aae3e7f6 100644
--- a/web/src/management/styles/icon.scss
+++ b/web/src/management/styles/icon.scss
@@ -1,8 +1,9 @@
@font-face {
- font-family: 'iconfont'; /* Project id 4263849 */
- src: url('//at.alicdn.com/t/c/font_4263849_2re4gm4ryc3.woff2?t=1723600417360') format('woff2'),
- url('//at.alicdn.com/t/c/font_4263849_2re4gm4ryc3.woff?t=1723600417360') format('woff'),
- url('//at.alicdn.com/t/c/font_4263849_2re4gm4ryc3.ttf?t=1723600417360') format('truetype');
+ font-family: 'iconfont'; /* Project id 4263849 */
+ src:
+ url('//at.alicdn.com/t/c/font_4263849_2re4gm4ryc3.woff2?t=1723600417360') format('woff2'),
+ url('//at.alicdn.com/t/c/font_4263849_2re4gm4ryc3.woff?t=1723600417360') format('woff'),
+ url('//at.alicdn.com/t/c/font_4263849_2re4gm4ryc3.ttf?t=1723600417360') format('truetype');
}
.iconfont {
diff --git a/web/src/materials/questions/widgets/EditOptions/Options/OptionEditBar.vue b/web/src/materials/questions/widgets/EditOptions/Options/OptionEditBar.vue
index e9689c47..1e1405be 100644
--- a/web/src/materials/questions/widgets/EditOptions/Options/OptionEditBar.vue
+++ b/web/src/materials/questions/widgets/EditOptions/Options/OptionEditBar.vue
@@ -15,7 +15,7 @@
diff --git a/web/src/render/stores/question.js b/web/src/render/stores/question.js
index 0f810353..3efa602b 100644
--- a/web/src/render/stores/question.js
+++ b/web/src/render/stores/question.js
@@ -189,14 +189,14 @@ export const useQuestionStore = defineStore('question', () => {
return questionData.value[field].index
}
const addNeedHideFields = (fields) => {
- fields.forEach(field => {
- if(!needHideFields.value.includes(field)) {
+ fields.forEach((field) => {
+ if (!needHideFields.value.includes(field)) {
needHideFields.value.push(field)
}
})
}
const removeNeedHideFields = (fields) => {
- needHideFields.value = needHideFields.value.filter(field => !fields.includes(field))
+ needHideFields.value = needHideFields.value.filter((field) => !fields.includes(field))
}
return {
voteMap,
diff --git a/web/src/render/stores/survey.js b/web/src/render/stores/survey.js
index c0cc3c09..838ec827 100644
--- a/web/src/render/stores/survey.js
+++ b/web/src/render/stores/survey.js
@@ -41,7 +41,6 @@ export const useSurveyStore = defineStore('survey', () => {
const formValues = ref({})
const whiteData = ref({})
const pageConf = ref([])
-
const router = useRouter()
const questionStore = useQuestionStore()
diff --git a/web/src/render/utils/index.js b/web/src/render/utils/index.js
index 7f9cf2b2..610e506f 100644
--- a/web/src/render/utils/index.js
+++ b/web/src/render/utils/index.js
@@ -29,4 +29,4 @@ export const formatLink = (url) => {
return url
}
return `http://${url}`
-}
\ No newline at end of file
+}