diff --git a/.oxfmtrc.json b/.oxfmtrc.json index f99bc53..ce2b6f2 100644 --- a/.oxfmtrc.json +++ b/.oxfmtrc.json @@ -11,6 +11,9 @@ "vueIndentScriptAndStyle": false, "bracketSameLine": false, "singleAttributePerLine": true, - "experimentalSortPackageJson": false, + "embeddedLanguageFormatting": "auto", + "experimentalSortPackageJson": true, + "experimentalSortImports": {}, + "experimentalTailwindcss": {}, "ignorePatterns": [] } diff --git a/.oxlintrc.json b/.oxlintrc.json index b99210f..ed1ef5b 100644 --- a/.oxlintrc.json +++ b/.oxlintrc.json @@ -1,23 +1,17 @@ { "$schema": "./node_modules/oxlint/configuration_schema.json", - "plugins": null, + "plugins": [ + "eslint", + "unicorn", + "vue", + "typescript", + "jsdoc", + "promise", + "vitest" + ], "categories": {}, "rules": {}, "settings": { - "jsx-a11y": { - "polymorphicPropName": null, - "components": {}, - "attributes": {} - }, - "next": { - "rootDir": [] - }, - "react": { - "formComponents": [], - "linkComponents": [], - "version": null, - "componentWrapperFunctions": [] - }, "jsdoc": { "ignorePrivate": false, "ignoreInternal": false, @@ -37,4 +31,4 @@ }, "globals": {}, "ignorePatterns": [] -} +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index 1659aca..f563e1a 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,12 +1,14 @@ { - "oxc.fmt.configPath": ".oxfmtrc.json", "editor.defaultFormatter": "oxc.oxc-vscode", "editor.formatOnSave": true, - "editor.codeActionsOnSave": { - "source.fixAll.oxc": "always" - }, + // "editor.codeActionsOnSave": { + // "source.fixAll.oxc": "always" + // }, "typescript.tsdk": "node_modules\\typescript\\lib", "[typescript]": { "editor.defaultFormatter": "oxc.oxc-vscode" + }, + "[json]": { + "editor.defaultFormatter": "oxc.oxc-vscode" } } \ No newline at end of file diff --git a/app/components/SlideCreateCourseGreen.vue b/app/components/SlideCreateCourseGreen.vue index b7f4d0c..d03dced 100644 --- a/app/components/SlideCreateCourseGreen.vue +++ b/app/components/SlideCreateCourseGreen.vue @@ -96,7 +96,7 @@ const onCreateCourseGreenSubmit = async ( BaseResponse >('App.Digital_VideoTask.Create', payload) .then((res) => { - if (!!res.data.task_id) { + if (res.data.task_id) { toast.add({ title: '创建成功', description: '视频已加入生成队列', diff --git a/app/layouts/default.vue b/app/layouts/default.vue index 46e6fba..0806467 100644 --- a/app/layouts/default.vue +++ b/app/layouts/default.vue @@ -135,10 +135,10 @@ onMounted(async () => { @@ -230,7 +230,7 @@ onMounted(async () => { diff --git a/app/pages/generation.vue b/app/pages/generation.vue index eb4da28..ff03a87 100644 --- a/app/pages/generation.vue +++ b/app/pages/generation.vue @@ -58,11 +58,11 @@ onMounted(() => {