|
|
@@ -1,11 +1,7 @@
|
|
|
<script lang="ts" setup>
|
|
|
import type { OnActionClickParams, VxeTableGridOptions } from '#/adapter';
|
|
|
|
|
|
-import { watch } from 'vue';
|
|
|
-
|
|
|
import { Page, useVbenModal } from '@vben/common-ui';
|
|
|
-import { useWatermark } from '@vben/hooks';
|
|
|
-import { preferences } from '@vben/preferences';
|
|
|
|
|
|
import { Button, message } from 'ant-design-vue';
|
|
|
|
|
|
@@ -22,23 +18,6 @@ const [FormEditModal, formEditApi] = useVbenModal({
|
|
|
});
|
|
|
|
|
|
const appStore = useAppStore();
|
|
|
-const { destroyWatermark, updateWatermark } = useWatermark();
|
|
|
-
|
|
|
-watch(
|
|
|
- () => preferences.app.watermark,
|
|
|
- async (enable) => {
|
|
|
- if (enable) {
|
|
|
- await updateWatermark({
|
|
|
- content: appStore.appInfo?.webWatermark,
|
|
|
- });
|
|
|
- } else {
|
|
|
- destroyWatermark();
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- immediate: true,
|
|
|
- },
|
|
|
-);
|
|
|
|
|
|
const handelSuccess = async () => {
|
|
|
await reload();
|