refactor: vue3.3 defineOptions
This commit is contained in:
@ -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