mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 18:52:19 +00:00
We should remove that reexport and standardize the import
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
{
|
{
|
||||||
"g": {
|
"g": {
|
||||||
"beta": "Beta",
|
|
||||||
"user": "User",
|
"user": "User",
|
||||||
"currentUser": "Current user",
|
"currentUser": "Current user",
|
||||||
"empty": "Empty",
|
"empty": "Empty",
|
||||||
|
|||||||
@@ -43,10 +43,9 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { cn } from '@comfyorg/tailwind-utils'
|
|
||||||
|
|
||||||
import AssetCard from '@/platform/assets/components/AssetCard.vue'
|
import AssetCard from '@/platform/assets/components/AssetCard.vue'
|
||||||
import type { AssetDisplayItem } from '@/platform/assets/composables/useAssetBrowser'
|
import type { AssetDisplayItem } from '@/platform/assets/composables/useAssetBrowser'
|
||||||
|
import { cn } from '@/utils/tailwindUtil'
|
||||||
|
|
||||||
defineProps<{
|
defineProps<{
|
||||||
assets: AssetDisplayItem[]
|
assets: AssetDisplayItem[]
|
||||||
|
|||||||
@@ -296,6 +296,9 @@ function createAssetService() {
|
|||||||
): Promise<string> {
|
): Promise<string> {
|
||||||
const res = await api.fetchApi(`${ASSETS_ENDPOINT}/${id}`, {
|
const res = await api.fetchApi(`${ASSETS_ENDPOINT}/${id}`, {
|
||||||
method: 'PUT',
|
method: 'PUT',
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json'
|
||||||
|
},
|
||||||
body: JSON.stringify(newData)
|
body: JSON.stringify(newData)
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -304,7 +307,7 @@ function createAssetService() {
|
|||||||
`Unable to update asset ${id}: Server returned ${res.status}`
|
`Unable to update asset ${id}: Server returned ${res.status}`
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
return res.json()
|
return await res.json()
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user