feat:架构代码优化
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
import config from '../../config/config';
|
||||
|
||||
const defaultPrintConfig: PrintConfig = config.printHeader as PrintConfig;
|
||||
import { defaultPrintConfig } from '../../config/config';
|
||||
|
||||
Page({
|
||||
data: {
|
||||
printConfig: defaultPrintConfig,
|
||||
enableDebug: false
|
||||
enableDebug: false,
|
||||
},
|
||||
|
||||
onLoad() {
|
||||
@@ -41,5 +39,5 @@ Page({
|
||||
toggleDebug() {
|
||||
const enableDebug = !this.data.enableDebug;
|
||||
this.setData({ enableDebug });
|
||||
}
|
||||
});
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user