Explorar el Código

开放四维看看

bill hace 2 años
padre
commit
621e75af4e
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      src/api/user.ts
  2. 1 1
      src/views/scene/select-scenes.vue

+ 1 - 1
src/api/user.ts

@@ -61,7 +61,7 @@ export type UserMeta = {
 }
 export const fetchUserMeta = () => axios.get<UserMeta>(GET_USER_META)
 
-export const uploadFile = async (file: File) =>
+export const uploadFile = async (file: File | Blob) =>
   await axios<string>({
     url: UPLOAD_FILE,
     method: 'POST',

+ 1 - 1
src/views/scene/select-scenes.vue

@@ -46,7 +46,7 @@ const emit = defineEmits<{
 
 const tabOptions = [
   SceneType.SWKJ,
-  // SceneType.SWKK,
+  SceneType.SWKK,
   SceneType.SWSS
 ].map(type => ({
   key: type,