Refactor API requests and update component imports
This commit is contained in:
@ -157,11 +157,12 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref, PropType, computed } from 'vue'
|
||||
import type { PropType } from 'vue'
|
||||
import { ref, computed } from 'vue'
|
||||
import { Plus } from '@element-plus/icons-vue'
|
||||
import KlUploader from '@/components/kl-uploader/index.vue'
|
||||
import { parent, keywords, labels, indexTabs } from '@/api/upnew/index'
|
||||
import { TcreateReq } from '@/api/upnew/types'
|
||||
import KlUploader from '~/components/kl-uploader/index.vue'
|
||||
import { parent, keywords, labels, indexTabs } from '~/api/upnew/index'
|
||||
import type { TcreateReq } from '~/api/upnew/types'
|
||||
|
||||
const props = defineProps({
|
||||
vaildRules: {
|
||||
|
||||
@ -53,9 +53,9 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import { nextTick, ref } from 'vue'
|
||||
import { TcreateReq } from '@/api/upnew/types'
|
||||
import { tree } from '@/api/common/index'
|
||||
import { DrawsEnmu } from '../util.ts'
|
||||
import type { TcreateReq } from '~/api/upnew/types'
|
||||
import { tree } from '~/api/common/index'
|
||||
import { DrawsEnmu } from '../util'
|
||||
|
||||
const form = defineModel<TcreateReq>('modelValue', {
|
||||
required: true,
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div class="ml-23px box-border min-h-930px w-516px border border-[#EEEEEE] rounded-12px border-solid bg-[#FFFFFF] px-33px py-22px">
|
||||
<div class="flex items-center">
|
||||
<img src="@/assets/images/preview.png" alt="" srcset="" width="16px" height="19px" /><span class="ml-7px text-18px text-[#333333] font-normal"
|
||||
<img src="~/assets/images/preview.png" alt="" srcset="" width="16px" height="19px" /><span class="ml-7px text-18px text-[#333333] font-normal"
|
||||
>预览</span
|
||||
></div
|
||||
>
|
||||
@ -11,7 +11,7 @@
|
||||
>
|
||||
<div class="my-30px h-1px w-460px rounded-1px bg-[#EEEEEE]"></div>
|
||||
<div class="flex items-center"
|
||||
><img src="@/assets/images/tip.png" width="20px" height="20px" /><span class="ml-7px text-18px text-[#333333] font-normal"
|
||||
><img src="~/assets/images/tip.png" width="20px" height="20px" /><span class="ml-7px text-18px text-[#333333] font-normal"
|
||||
>上传遇到问题可以咨询</span
|
||||
></div
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user