|
|
@@ -25,20 +25,21 @@ import {ref, reactive, watch, defineProps, defineEmits} from 'vue'
|
|
|
import {message} from 'ant-design-vue'
|
|
|
import {PictureOutlined, CloudUploadOutlined} from '@ant-design/icons-vue'
|
|
|
import tool from "@/utils/tool";
|
|
|
+import sysConfig from '@/config/index'
|
|
|
|
|
|
-// const action = ref(sysConfig.API_URL +'/api/webapp/dev/file/uploadMinioReturnUrl')
|
|
|
-const action = ref(sysConfig.API_URL +'/api/webapp/dev/file/uploadMinioReturnId')
|
|
|
+const action = ref(sysConfig.API_URL + `/api/webapp/dev/file/${props.urlType==1?'uploadMinioReturnId':'uploadMinioReturnUrl'}`)
|
|
|
const headers = ref({
|
|
|
token: tool.data.get('TOKEN')
|
|
|
})
|
|
|
-import sysConfig from '@/config/index'
|
|
|
-//课程类型
|
|
|
-
|
|
|
|
|
|
const props = defineProps({
|
|
|
count: Number,
|
|
|
default : () => 1,
|
|
|
- modelValue: [String, Number, Boolean, Object, Array, null]
|
|
|
+ modelValue: [String, Number, Boolean, Object, Array, null],
|
|
|
+ urlType: {
|
|
|
+ type: [String,Number],
|
|
|
+ default: 1
|
|
|
+ }
|
|
|
})
|
|
|
|
|
|
const emit = defineEmits(['update:visible','update:modelValue', 'ok','handlerUpSelect','handlerNewSelect','handlerUpImage'])
|