Update index.js
This commit is contained in:
@@ -78,7 +78,6 @@ function rule2json() {
|
|||||||
Object.keys(RuleJSON).forEach(key => {
|
Object.keys(RuleJSON).forEach(key => {
|
||||||
RuleJSON[key] = $('#' + key).value;
|
RuleJSON[key] = $('#' + key).value;
|
||||||
});
|
});
|
||||||
//类型转换
|
|
||||||
RuleJSON.lastUpdateTime = new Date().getTime();
|
RuleJSON.lastUpdateTime = new Date().getTime();
|
||||||
RuleJSON.customOrder = RuleJSON.customOrder == '' ? 0 : parseInt(RuleJSON.customOrder);
|
RuleJSON.customOrder = RuleJSON.customOrder == '' ? 0 : parseInt(RuleJSON.customOrder);
|
||||||
RuleJSON.articleStyle = RuleJSON.articleStyle == '' ? 0 : parseInt(RuleJSON.articleStyle);
|
RuleJSON.articleStyle = RuleJSON.articleStyle == '' ? 0 : parseInt(RuleJSON.articleStyle);
|
||||||
|
|||||||
Reference in New Issue
Block a user