This commit is contained in:
parent
a56328a02f
commit
f3d602a5a4
|
@ -4,7 +4,8 @@
|
|||
<script lang="ts" setup>
|
||||
import Vditor from 'vditor';
|
||||
import 'vditor/dist/index.css';
|
||||
import useUserStore from '@/stores/modules/user'
|
||||
import useUserStore from '@/stores/modules/user';
|
||||
import configs from '@/config'
|
||||
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
|
@ -24,7 +25,7 @@ onMounted(() => {
|
|||
upload: {
|
||||
accept: 'image/*,.mp3, .wav, .rar',
|
||||
headers:{Token:userStore.token},
|
||||
url: 'http://127.0.0.1:8787/admin/upload/image',
|
||||
url: `${configs.baseUrl}${configs.urlPrefix}/upload/image`,
|
||||
multiple:false,
|
||||
fieldName:'file',
|
||||
filename (name) {
|
||||
|
|
Loading…
Reference in New Issue