diff --git a/admin/src/components/upload/index.vue b/admin/src/components/upload/index.vue index e4925f6f..97b78300 100644 --- a/admin/src/components/upload/index.vue +++ b/admin/src/components/upload/index.vue @@ -79,7 +79,7 @@ export default defineComponent({ setup(props, { emit }) { const userStore = useUserStore() const uploadRefs = shallowRef>() - const action = ref(`${config.baseUrl}${config.urlPrefix}/common/upload/${props.type}`) + const action = ref(`${config.baseUrl}${config.urlPrefix}/upload/${props.type}`) const headers = computed(() => ({ token: userStore.token, version: config.version diff --git a/admin/src/views/decoration/tabbar.vue b/admin/src/views/decoration/tabbar.vue index c1396957..86fd79a2 100644 --- a/admin/src/views/decoration/tabbar.vue +++ b/admin/src/views/decoration/tabbar.vue @@ -188,7 +188,7 @@ const onMove = (e: any) => { const getData = async () => { const data = await getDecorateTabbar() - tabbar.list = data.list.map((item: any) => ({ ...item, link: JSON.parse(item.link) })) + tabbar.list = data.list tabbar.style = data.style } const setData = async () => {