Skip to content

Commit

Permalink
fix: css loader warning
Browse files Browse the repository at this point in the history
  • Loading branch information
buqiyuan committed Aug 3, 2022
1 parent 5424fec commit be28dae
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 2 additions & 0 deletions src/workbench/browser/angular.webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@ module.exports = (config, options) => {
{
test: /\.css$/,
use: ['style-loader', 'css-loader'],
resourceQuery: { not: [/\?ngResource/] },
},
{
test: /\.ttf$/,
type: 'asset/resource',
resourceQuery: { not: [/\?ngResource/] },
},
...config.module.rules,
];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { debounce } from 'eo/workbench/browser/src/app/utils';
import { Component, OnInit, OnDestroy, ViewChild } from '@angular/core';
import { Router, NavigationEnd, ActivatedRoute } from '@angular/router';
import { GroupTreeItem, GroupApiDataModel } from '../../../../shared/models';
Expand Down Expand Up @@ -93,11 +94,13 @@ export class ApiGroupTreeComponent implements OnInit, OnDestroy {
/**
* Load all group and apiData items.
*/
buildGroupTreeData(): void {
this.groupByID = {};
this.treeItems = [];
this.getGroups();
}
buildGroupTreeData = debounce(() => {
{
this.groupByID = {};
this.treeItems = [];
this.getGroups();
}
});
getGroups() {
this.storage.run('groupLoadAllByProjectID', [this.projectID], (result: StorageRes) => {
if (result.status === StorageResStatus.success) {
Expand Down

0 comments on commit be28dae

Please sign in to comment.