Coder Social home page Coder Social logo

money-minder's Introduction

money-minder

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Customize configuration

See Configuration Reference.

money-minder's People

Contributors

bbslzy001 avatar

Watchers

 avatar

money-minder's Issues

添加Breadcrumb

Tool页面的header需要添加Breadcrumb,用于快速回退页面

ResizeObserver loop limit exceeded

描述

打开 http://127.0.0.1:8080/tool/manage-bill 页面时报错如下:

Uncaught runtime errors:
ERROR
ResizeObserver loop limit exceeded
at handleError (webpack-internal:///./node_modules/webpack-dev-server/client/overlay.js:299:58)
at eval (webpack-internal:///./node_modules/webpack-dev-server/client/overlay.js:318:7)

解决方法

在main.ts中定义如下内容:

type DebounceFunction = (...args: any[]) => void;

const debounce = (fn: DebounceFunction, delay: number): DebounceFunction => {
    let timer: number | null = null;
    return function (this: ThisParameterType<DebounceFunction>, ...args: any[]): void {
        const context = this;
        clearTimeout(timer as number | undefined);
        timer = window.setTimeout(function (this: ThisParameterType<DebounceFunction>) {
            fn.apply(context, args);
        }, delay);
    };
};

const _ResizeObserver = window.ResizeObserver;
window.ResizeObserver = class ResizeObserver extends _ResizeObserver {
    constructor(callback: (entries: ResizeObserverEntry[], observer: ResizeObserver) => void) {
        const debouncedCallback = debounce(callback, 16);
        super(debouncedCallback);
    }
};

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.