@@ -10,7 +10,7 @@ VITE_PROXY = [["","http://192.168.11.11:7011"]] | |||
# base api | |||
VITE_APP_GLOB_BASE_API = '' | |||
VITE_AUTHORITY = 'http://oidc.dev.t-aaron.com' | |||
VITE_AUTHORITY = 'http://192.168.11.11:8090' | |||
VITE_CLIENT_ID = 'tuoheng-pilot-admin' | |||
VITE_CLIENT_SECRET = 'WB0CZ1c6bZLiYP6jLtDFsA==' | |||
VITE_REDIRECT_URI = 'http://192.168.11.11:7011/login' |
@@ -56,6 +56,7 @@ const props = defineProps({ | |||
const emit = defineEmits(['uploadStatus']) | |||
const client = ref(null) // 上传实例 | |||
const data = reactive({ | |||
...props, | |||
client: null, | |||
@@ -67,13 +68,11 @@ onMounted(() => { | |||
if (props.defaultList) { | |||
const list = props.defaultList.split(',') | |||
data.fileList = list.map((item) => { | |||
// const objectName = item.split('/').slice(3).join('/') | |||
const objectName = item | |||
console.log('objectName-mounted', objectName) | |||
const objectName = item.split('/').slice(3).join('/') | |||
const obj = { | |||
name: objectName, | |||
id: objectName, | |||
type: 'image/png', | |||
// type: 'image/png', | |||
url: item, | |||
objectName: objectName, | |||
status: 'finished' | |||
@@ -95,9 +94,7 @@ watch(() => props.defaultList, (value) => { | |||
if (value.length) { | |||
const list = value.split(',') | |||
const fileList = list.map((item) => { | |||
// const objectName = item.split('/').slice(3).join('/') | |||
const objectName = item | |||
console.log('objectName-watch', objectName) | |||
const objectName = item.split('/').slice(3).join('/') | |||
const obj = { | |||
name: objectName, | |||
id: objectName, |
@@ -87,7 +87,7 @@ onMounted(() => { | |||
if (props.defaultList) { | |||
const list = props.defaultList.split(',') | |||
data.fileList = list.map((item) => { | |||
const objectName = item.split('/').slice(3).join('/') | |||
const objectName = '/' + item.split('/').slice(3).join('/') | |||
const obj = { | |||
name: objectName, | |||
id: objectName, | |||
@@ -113,7 +113,7 @@ watch(() => props.defaultList, (value) => { | |||
if (value.length) { | |||
const list = value.split(',') | |||
const fileList = list.map((item) => { | |||
const objectName = item.split('/').slice(3).join('/') | |||
const objectName = '/' + item.split('/').slice(3).join('/') | |||
const obj = { | |||
name: objectName, | |||
id: objectName, |
@@ -327,7 +327,6 @@ const vodStatusVideo = async({ status, list, videoIds }) => { | |||
// 只文件上传 | |||
const statusfile = async(status, list) => { | |||
console.log('list是啥', list) | |||
if (status === 'success') { | |||
const params = { | |||
id: data.id, |