You can do like that: <template v-html="svgFile"></template> ... computed:{ svgFile(){ require(`path/to/${this.file}.svg`) } }.
確定! 回上一頁