Browse Source

[FIX] total decimals

Gogs 7 năm trước cách đây
mục cha
commit
30026a5f8c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/components/CartTotal.vue

+ 1 - 1
src/components/CartTotal.vue

@@ -31,7 +31,7 @@
         },
         methods: {
             getTotal() {
-                return accounting.format(this.total, 2, '.', ',')
+                return accounting.format(this.total, this.decimals, '.', ',')
             },
             getSymbol() {
                 return this.symbol