1.修复上传漏洞和SQL注入漏洞-增强登录验证功能
This commit is contained in:
@@ -691,7 +691,6 @@ import { getDatabaseConnectionListUrl, getTableFieldList, getTableListUrl } from
|
||||
import BaInput from '/@/components/baInput/index.vue'
|
||||
import FormItem from '/@/components/formItem/index.vue'
|
||||
import { useConfig } from '/@/stores/config'
|
||||
import { useTerminal } from '/@/stores/terminal'
|
||||
import { getArrayKey } from '/@/utils/common'
|
||||
import { uuid } from '/@/utils/random'
|
||||
import { buildValidatorData, regularVarName } from '/@/utils/validate'
|
||||
@@ -702,7 +701,6 @@ import { changeStep, state as crudState, designTypes, fieldItem, getTableAttr, t
|
||||
let nameRepeatCount = 1
|
||||
const { t } = useI18n()
|
||||
const config = useConfig()
|
||||
const terminal = useTerminal()
|
||||
const formRef = useTemplateRef('formRef')
|
||||
const tabsRefs = useTemplateRefsList<HTMLElement>()
|
||||
const designWindowRef = useTemplateRef('designWindowRef')
|
||||
@@ -1161,22 +1159,15 @@ const startGenerate = () => {
|
||||
})
|
||||
.then((res) => {
|
||||
const callback = () => {
|
||||
const webViewsDir = state.table.webViewsDir.replace(/^web/, '.')
|
||||
terminal.toggle(true)
|
||||
terminal.addTask('npx.prettier', false, webViewsDir, () => {
|
||||
terminal.toggle(false)
|
||||
terminal.toggleDot(true)
|
||||
nextTick(() => {
|
||||
// 要求 Vite 服务端重启
|
||||
if (import.meta.hot) {
|
||||
reloadServer('crud')
|
||||
} else {
|
||||
ElNotification({
|
||||
type: 'error',
|
||||
message: t('crud.crud.Vite hot warning'),
|
||||
})
|
||||
}
|
||||
})
|
||||
nextTick(() => {
|
||||
if (import.meta.hot) {
|
||||
reloadServer('crud')
|
||||
} else {
|
||||
ElNotification({
|
||||
type: 'error',
|
||||
message: t('crud.crud.Vite hot warning'),
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user