|
|
@@ -139,8 +139,12 @@
|
|
|
import coverUpload from './coverUpload/index.vue'
|
|
|
import UpLoadBreakPoint from '@/components/UpLoadBreakPoint/index.vue'
|
|
|
import { useMyResourceStore } from '@/store/myResource'
|
|
|
+ import tool from '@/utils/tool'
|
|
|
+ import sysConfig from "@/config";
|
|
|
+
|
|
|
const myResourceStore = useMyResourceStore()
|
|
|
const { proxy } = getCurrentInstance()
|
|
|
+
|
|
|
const props = defineProps({
|
|
|
isState: {
|
|
|
type: Number,
|
|
|
@@ -159,13 +163,13 @@
|
|
|
}
|
|
|
})
|
|
|
const emit = defineEmits(['close', 'getList'])
|
|
|
- import tool from '@/utils/tool'
|
|
|
+
|
|
|
const headers = ref({
|
|
|
token: tool.data.get('TOKEN')
|
|
|
})
|
|
|
//课程类型
|
|
|
const courseTypeOptions = tool.dictList('COURSE_TYPE')
|
|
|
- const action = ref('/api/webapp/dev/file/uploadMinioReturnId')
|
|
|
+ const action = ref(sysConfig.API_URL+'/api/webapp/dev/file/uploadMinioReturnId')
|
|
|
const formState = reactive({
|
|
|
userfileIds: null, //资源文件id
|
|
|
coverImage: null, //封面id
|