File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ import { UserManager } from './apps/user/manager';
1515import { ToolsManager } from './apps/tools/manager' ;
1616import Dexie from 'dexie' ;
1717import { DBLogger } from './apps/logger/dblogger' ;
18+ import { createLogger } from './apps/logger/logger' ;
19+ import { ConsoleTransports } from './apps/logger/console' ;
1820
1921migrate ( ) ;
2022
@@ -24,6 +26,14 @@ InitApp({
2426 Environment : ENV_BACKGROUND ,
2527} ) ;
2628
29+ const logger = createLogger ( {
30+ catalog : {
31+ name : 'background' ,
32+ } ,
33+ level : process . env . NODE_ENV === 'development' ? 'debug' : 'info' ,
34+ transports : [ new ConsoleTransports ( ) ] ,
35+ } ) ;
36+
2737void SystemConfig . init ( ) ;
2838
2939chrome . contextMenus . create ( {
@@ -84,6 +94,7 @@ function sandboxLoad(event: MessageEvent<{ action: string }>) {
8494
8595// 检查更新
8696setInterval ( ( ) => {
97+ logger . debug ( `check_script_update_cycle ${ SystemConfig . check_script_update_cycle } ` ) ;
8798 if ( SystemConfig . check_script_update_cycle === 0 ) {
8899 return ;
89100 }
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ export default class Config extends Vue {
6363 { key: 604800 , val: ' 每周' },
6464 ],
6565 change(val : any ) {
66- SystemConfig .check_script_update_cycle = val .value . key ;
66+ SystemConfig .check_script_update_cycle = val .value ;
6767 },
6868 },
6969 {
You can’t perform that action at this time.
0 commit comments