提交 bf5c83be authored 作者: lidongxu's avatar lidongxu

refactor(livecate): 梳理_数据配置里的直播间分类

同上
上级 2579f150
......@@ -39,17 +39,6 @@ import { getLiveCate, uploadLiveCate } from '@/api'
const { proxy } = getCurrentInstance()
const tableData = ref([])
const queryParams = ref({
zbjQdType: ''
})
const getCate = async () => {
const res = await getLiveCate(queryParams.value)
tableData.value = res.data
}
getCate()
// 覆盖上传直播间分类表格
const uploadExcel = () => {
const fileInput = document.createElement('input');
......@@ -66,13 +55,20 @@ const uploadExcel = () => {
proxy.$modal.msgSuccess(res.data)
}
});
document.body.appendChild(fileInput);
fileInput.click()
}
</script>
<style scoped
lang="sass">
/************ 直播间分类列表 *******************/
const tableData = ref([])
const queryParams = reactive({
zbjQdType: ''
})
const getCate = async () => {
const res = await getLiveCate(queryParams)
tableData.value = res.data
}
getCate()
</style>
\ No newline at end of file
</script>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论