alert before clean browsers
This commit is contained in:
@@ -1,15 +1,16 @@
|
||||
<script setup lang="ts">
|
||||
import { useBrowserClean } from "../composables/useBrowserClean";
|
||||
import type { AlertOptions } from "../types/cleaner";
|
||||
import type { AlertOptions, ConfirmOptions } from "../types/cleaner";
|
||||
import { splitSize } from "../utils/format";
|
||||
|
||||
const props = defineProps<{
|
||||
browser: "chrome" | "edge";
|
||||
showAlert: (options: AlertOptions) => void;
|
||||
requestConfirm: (options: ConfirmOptions) => Promise<boolean>;
|
||||
}>();
|
||||
|
||||
const { state, selectedStats, startScan, startClean, toggleAllProfiles, invertProfiles, reset } =
|
||||
useBrowserClean(props.browser, props.showAlert);
|
||||
useBrowserClean(props.browser, props.showAlert, props.requestConfirm);
|
||||
|
||||
const browserName = props.browser === "chrome" ? "谷歌浏览器" : "微软浏览器";
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user