mirror of
https://github.com/halo-dev/halo.git
synced 2025-12-20 16:44:38 +08:00
feat: add requests library as a global shared dependency
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { apiClient } from "@/utils/api-client";
|
||||
import { coreApiClient } from "@halo-dev/api-client";
|
||||
import { watch, type Ref, ref, nextTick } from "vue";
|
||||
|
||||
interface SnapshotContent {
|
||||
@@ -20,10 +20,9 @@ export function useContentSnapshot(
|
||||
if (!snapshotName.value) {
|
||||
return;
|
||||
}
|
||||
const { data } =
|
||||
await apiClient.extension.snapshot.getContentHaloRunV1alpha1Snapshot({
|
||||
name: snapshotName.value,
|
||||
});
|
||||
const { data } = await coreApiClient.content.snapshot.getSnapshot({
|
||||
name: snapshotName.value,
|
||||
});
|
||||
version.value = data.metadata.version || 0;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user