dusenyao 3 years ago
parent
commit
b24e31552c
2 changed files with 1 additions and 2 deletions
  1. 0 1
      .prettierrc.js
  2. 1 1
      src/views/quota/SetQuota.vue

+ 0 - 1
.prettierrc.js

@@ -3,7 +3,6 @@ module.exports = {
   printWidth: 120,
   semi: true,
   singleQuote: true,
-  singleAttributePerLine: true,
   trailingComma: 'none',
   endOfLine: 'auto',
   arrowParens: 'avoid'

+ 1 - 1
src/views/quota/SetQuota.vue

@@ -145,7 +145,7 @@ export default {
       return this.onlineTypeList[this.online_type].price;
     },
     onlineTotal() {
-      return this.curOnlineTypePrice * this.quota_add * this.quota_multiply;
+      return Number(this.curOnlineTypePrice * this.quota_add * this.quota_multiply).toFixed(2);
     }
   },
   watch: {