fix: 打包问题
This commit is contained in:
parent
541886b6e6
commit
068fc262ab
@ -182,11 +182,10 @@ import {
|
||||
NSelect,
|
||||
NSwitch,
|
||||
NButton,
|
||||
NIcon,
|
||||
NInputNumber,
|
||||
NDropdown
|
||||
NInputNumber
|
||||
} from 'naive-ui'
|
||||
import '@wangeditor/editor/dist/css/style.css'
|
||||
// @ts-ignore
|
||||
import { Editor, Toolbar } from '@wangeditor/editor-for-vue'
|
||||
|
||||
const router = useRouter()
|
||||
@ -216,7 +215,7 @@ onMounted(() => {
|
||||
})
|
||||
|
||||
// 加载作业数据
|
||||
const loadHomeworkData = async (id: string) => {
|
||||
const loadHomeworkData = async (_id: string) => {
|
||||
try {
|
||||
// 这里应该调用实际的API获取作业数据
|
||||
// 模拟API调用
|
||||
|
@ -49,10 +49,8 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
import MessageComponent from '@/components/MessageComponent.vue'
|
||||
|
||||
const router = useRouter()
|
||||
const fileInput = ref<HTMLInputElement>()
|
||||
const messageRef = ref<InstanceType<typeof MessageComponent>>()
|
||||
|
||||
@ -130,10 +128,7 @@ const startImport = async () => {
|
||||
}
|
||||
}
|
||||
|
||||
// 测试消息提示功能
|
||||
const testMessage = () => {
|
||||
messageRef.value?.show('测试消息:作业批量导入.xlsx 导入成功', 'success')
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
Loading…
x
Reference in New Issue
Block a user