From 21e94f048cc56c4e359b4bfb080ae1825ec583ec Mon Sep 17 00:00:00 2001 From: shenhan Date: Thu, 6 Feb 2025 15:18:00 +0800 Subject: [PATCH] update --- README.md | 4 + app/components.d.ts | 2 + app/components/EditUserInfo.vue | 6 +- app/components/PersonalCenterCard.vue | 119 ++++--- app/components/WangEditor.vue | 49 +++ app/components/publishModel/CreateModels.vue | 262 ++++++++++++++ app/components/publishModel/EditVersion.vue | 314 +++++++++++++++++ app/middleware/auth.global.ts | 2 +- app/pages/personal-center/index.vue | 88 ++++- app/pages/publish-model/index.vue | 352 ++++++++++--------- app/pages/workflow-details/[id].vue | 103 +++++- app/utils/uploadImg.ts | 2 +- nuxt.config.ts | 4 +- package.json | 2 + pnpm-lock.yaml | 162 ++++++++- 15 files changed, 1234 insertions(+), 237 deletions(-) create mode 100644 app/components/WangEditor.vue create mode 100644 app/components/publishModel/CreateModels.vue create mode 100644 app/components/publishModel/EditVersion.vue diff --git a/README.md b/README.md index 459296c..bfd8250 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,10 @@ We recommend using [VS Code](https://code.visualstudio.com/) with [Volar](https: - [vitesse-nuxt-bridge](https://github.com/antfu/vitesse-nuxt-bridge) - Vitesse for Nuxt 2 with Bridge - [vitesse-webext](https://github.com/antfu/vitesse-webext) - WebExtension Vite starter template +## rich text + +- [wangEditor](https://www.wangeditor.com/v5/for-frame.html#%E5%AE%89%E8%A3%85-1) - Opinionated Astro Starter Template + ## Try it now! ### Online diff --git a/app/components.d.ts b/app/components.d.ts index c31e69f..b4c9ad0 100644 --- a/app/components.d.ts +++ b/app/components.d.ts @@ -12,11 +12,13 @@ declare module 'vue' { NBadge: typeof import('naive-ui')['NBadge'] NButton: typeof import('naive-ui')['NButton'] NCard: typeof import('naive-ui')['NCard'] + NCascader: typeof import('naive-ui')['NCascader'] NCheckbox: typeof import('naive-ui')['NCheckbox'] NCheckboxGroup: typeof import('naive-ui')['NCheckboxGroup'] NConfigProvider: typeof import('naive-ui')['NConfigProvider'] NDatePicker: typeof import('naive-ui')['NDatePicker'] NDropdown: typeof import('naive-ui')['NDropdown'] + NDynamicTags: typeof import('naive-ui')['NDynamicTags'] NForm: typeof import('naive-ui')['NForm'] NFormItem: typeof import('naive-ui')['NFormItem'] NFormItemGi: typeof import('naive-ui')['NFormItemGi'] diff --git a/app/components/EditUserInfo.vue b/app/components/EditUserInfo.vue index 280ef23..a1d3110 100644 --- a/app/components/EditUserInfo.vue +++ b/app/components/EditUserInfo.vue @@ -49,7 +49,7 @@ async function handlePictureChange(event: Event) { event.target.value = '' ruleForm.value.avatar = pictureResultList[0] } - catch (error) { + catch (error: any) { message.error('图片上传失败') } } @@ -83,7 +83,9 @@ onMounted(() => { :mask-closable="false" >
- 编辑 + + 编辑 +