|
@@ -202,8 +202,13 @@ export default { |
|
|
/* imgUrl = require(`@/assets/img/psychological/${name}_${level}.png`); */ |
|
|
/* imgUrl = require(`@/assets/img/psychological/${name}_${level}.png`); */ |
|
|
let numLevel = Number(level); |
|
|
let numLevel = Number(level); |
|
|
console.log(`@/assets/img/psychological/${name}_${numLevel}.png`); |
|
|
console.log(`@/assets/img/psychological/${name}_${numLevel}.png`); |
|
|
imgUrl = require(`@/assets/img/psychological/${name}_${numLevel + 1 |
|
|
|
|
|
}.png`); |
|
|
|
|
|
|
|
|
if (numLevel < 0) { |
|
|
|
|
|
imgUrl = require(`@/assets/img/psychological/${name}_1.png`); |
|
|
|
|
|
} else { |
|
|
|
|
|
imgUrl = require(`@/assets/img/psychological/${name}_${numLevel + 1}.png`); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* switch(level) { |
|
|
/* switch(level) { |
|
|
case '0': |
|
|
case '0': |
|
|
imgUrl = require(`@/assets/img/psychological/${name}_${numLevel + 1}.png`); |
|
|
imgUrl = require(`@/assets/img/psychological/${name}_${numLevel + 1}.png`); |
|
|