-
Notifications
You must be signed in to change notification settings - Fork 281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
怎么处理需要图片资源的动画 #30
Comments
|
相对你引入的这个文件里的路径,比如tittle.json,这个文件所有引用的图片的路径 |
data() {
return {
defaultOptions: { animationData: animationData.default },
animationSpeed: 1
}
} import * as animationData from '../assets/images/node/lottie/data.json'
animationData.assets.forEach((item, index) => {
item.u = ''
item.p = require(`@/assets/images/node/lottie/images/img_${index}.png`)
}) 最后这样解决的,相对路径的方法试了还是无法加载出来。 |
@usercao Thanks |
@usercao 牛逼,感谢 |
@usercao 牛逼,试了贼多办法就你的有用 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: