mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-02 12:09:13 +08:00
refactor(通用功能): 代码规范整理
Signed-off-by: fit2-zhao <yong.zhao@fit2cloud.com>
This commit is contained in:
parent
e6cef61351
commit
0074a48369
@ -69,7 +69,6 @@
|
||||
* polyfill version of `btoa`
|
||||
*/
|
||||
var btoaPolyfill = function (bin) {
|
||||
// console.log('polyfilled');
|
||||
var u32, c0, c1, c2, asc = '';
|
||||
var pad = bin.length % 3;
|
||||
for (var i = 0; i < bin.length;) {
|
||||
@ -197,7 +196,6 @@
|
||||
* polyfill version of `atob`
|
||||
*/
|
||||
var atobPolyfill = function (asc) {
|
||||
// console.log('polyfilled');
|
||||
asc = asc.replace(/\s+/g, '');
|
||||
if (!b64re.test(asc))
|
||||
throw new TypeError('malformed base64.');
|
||||
|
@ -73,10 +73,8 @@ export default class Node {
|
||||
this.parent = null;
|
||||
this.visible = true;
|
||||
this.isCurrent = false;
|
||||
// console.log(22, Object.prototype.hasOwnProperty.call(options, name));
|
||||
for (let name in options) {
|
||||
if (Object.prototype.hasOwnProperty.call(options, name)) {
|
||||
// if (options.hasOwnProperty(name)) {
|
||||
this[name] = options[name];
|
||||
}
|
||||
}
|
||||
|
@ -47,9 +47,7 @@ export default {
|
||||
this.microApp = loadMicroApp(app);
|
||||
},
|
||||
messageInit() {
|
||||
this.messageEvent.onGlobalStateChange((state, prev) => {
|
||||
console.log("main-onGlobalStateChange", state, prev);
|
||||
});
|
||||
this.messageEvent.onGlobalStateChange((state, prev) => {});
|
||||
},
|
||||
changeState() {
|
||||
this.messageEvent.setGlobalState({b: 1});
|
||||
|
@ -273,7 +273,6 @@ export default {
|
||||
}
|
||||
},
|
||||
detail() {
|
||||
console.log(this.edit)
|
||||
this.disabled = false;
|
||||
this.visible = true;
|
||||
},
|
||||
|
@ -213,7 +213,6 @@ export default {
|
||||
this.$emit('refresh');
|
||||
})
|
||||
.catch((e) => {
|
||||
console.log(e)
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user