mirror of
https://gitee.com/devlive-community/datacap.git
synced 2024-12-03 04:27:56 +08:00
[Core] [Web] Fixed code
This commit is contained in:
parent
9b510b8639
commit
452836eb30
@ -1,7 +1,8 @@
|
||||
<template>
|
||||
<div id="app">
|
||||
<router-view></router-view>
|
||||
<div class="pdfContent" id="watermark-parent">
|
||||
<router-view/>
|
||||
<div class="pdfContent"
|
||||
id="watermark-parent">
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@ -15,11 +16,11 @@ export default defineComponent({
|
||||
// Fixed ResizeObserver loop completed with undelivered notifications
|
||||
setup()
|
||||
{
|
||||
const debounce = (callback: (...args: any[]) => void, delay: number) => {
|
||||
let tid: any;
|
||||
return function (...args: any[]) {
|
||||
const debounce = (callback: (...args: unknown[]) => void, delay: number) => {
|
||||
let tid: unknown;
|
||||
return function (...args: unknown[]) {
|
||||
const ctx = self;
|
||||
tid && clearTimeout(tid);
|
||||
tid && clearTimeout(tid as number);
|
||||
tid = setTimeout(() => {
|
||||
callback.apply(ctx, args);
|
||||
}, delay);
|
||||
@ -30,7 +31,7 @@ export default defineComponent({
|
||||
(window as any).ResizeObserver = class ResizeObserver
|
||||
extends _
|
||||
{
|
||||
constructor(callback: (...args: any[]) => void)
|
||||
constructor(callback: (...args: unknown[]) => void)
|
||||
{
|
||||
callback = debounce(callback, 20);
|
||||
super(callback);
|
||||
|
@ -13,7 +13,7 @@ export interface SourceModel
|
||||
type: string;
|
||||
createTime?: number;
|
||||
ssl?: boolean;
|
||||
configures: {};
|
||||
configures: NonNullable<unknown>;
|
||||
file?: [];
|
||||
version?: string;
|
||||
}
|
||||
|
@ -5,7 +5,7 @@ export interface TemplateSql
|
||||
description: string;
|
||||
content: string;
|
||||
plugin: string;
|
||||
configure: {};
|
||||
configure: NonNullable<unknown>;
|
||||
system: boolean;
|
||||
createTime?: string;
|
||||
updateTime?: string;
|
||||
|
Loading…
Reference in New Issue
Block a user