Procházet zdrojové kódy

Merge branch 'master' of http://47.108.172.52:3000/dayou/item-management-web

GouGengquan před 3 měsíci
rodič
revize
624951077a
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. 3 1
      src/views/personal/readonlyDetail.vue

+ 3 - 1
src/views/personal/readonlyDetail.vue

@@ -1327,7 +1327,9 @@ export default {
       if (this.personalId) {
         this.$api.personalTarget.detail(this.personalId).then(res => {
           if (res.code === 200) {
-            res.data.amount = utils.roundToDecimalPlace(new Decimal(res.data.amount).div(10000),2)
+            if (res.data.amount){
+              res.data.amount = utils.roundToDecimalPlace(new Decimal(res.data.amount).div(10000),2)
+            }
             this.target = res.data;
             this.linkAttributes.acreage = this.target.acreage;
             if (res.data.isOnline) {