chore: prettier js codes

This commit is contained in:
陈嘉涵
2020-01-19 17:02:01 +08:00
parent 2adcfd8b8b
commit 1e864a445f
28 changed files with 333 additions and 174 deletions
+6 -6
View File
@@ -112,12 +112,12 @@ export default createComponent({
if (this.placeholderMap[type] && result.length) {
// set columns placeholder
const codeFill =
type === 'province'
? ''
: type === 'city'
? PLACEHOLDER_CODE.slice(2, 4)
: PLACEHOLDER_CODE.slice(4, 6);
let codeFill = '';
if (type === 'city') {
codeFill = PLACEHOLDER_CODE.slice(2, 4);
} else if (type === 'county') {
codeFill = PLACEHOLDER_CODE.slice(4, 6);
}
result.unshift({
code: `${code}${codeFill}`,