mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-07-26 08:45:08 +08:00
refactor: vue3.3 defineOptions
This commit is contained in:
@ -125,12 +125,14 @@
|
||||
</el-container>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts" name="NewsForm">
|
||||
<script setup lang="ts">
|
||||
import { Editor } from '@/components/Editor'
|
||||
import { createEditorConfig } from '../editor-config'
|
||||
import CoverSelect from './CoverSelect.vue'
|
||||
import { type NewsItem, createEmptyNewsItem } from './types'
|
||||
|
||||
defineOptions({ name: 'NewsForm' })
|
||||
|
||||
const message = useMessage()
|
||||
|
||||
const props = defineProps<{
|
||||
|
@ -61,7 +61,7 @@
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts" name="MpDraft">
|
||||
<script setup lang="ts">
|
||||
import WxAccountSelect from '@/views/mp/components/wx-account-select'
|
||||
import * as MpDraftApi from '@/api/mp/draft'
|
||||
import * as MpFreePublishApi from '@/api/mp/freePublish'
|
||||
@ -74,6 +74,8 @@ import {
|
||||
} from './components/'
|
||||
// import drafts from './mock' // 可以用改本地数据模拟,避免API调用超限
|
||||
|
||||
defineOptions({ name: 'MpDraft' })
|
||||
|
||||
const message = useMessage() // 消息
|
||||
|
||||
const accountId = ref(-1)
|
||||
|
Reference in New Issue
Block a user