Commit 4681b605 authored by wildfirecode13's avatar wildfirecode13

11111

parent cec7f22f
No preview for this file type
node_modules node_modules
dist dist
.DS_Store .DS_Store
node_modules
dist
\ No newline at end of file
...@@ -11,7 +11,7 @@ class Main3 extends Component { ...@@ -11,7 +11,7 @@ class Main3 extends Component {
super(props); super(props);
this.state = { this.state = {
resList: resList, resList: resList,
nickname:'nickname', nickname:'d9813k',
avatar:1, avatar:1,
num:"1123" num:"1123"
}; };
......
...@@ -25,10 +25,10 @@ export const loadSVGA = (url) => { ...@@ -25,10 +25,10 @@ export const loadSVGA = (url) => {
export const getSVGA = async (url, className, loops, clearsAfterStop) => { export const getSVGA = async (url, className, loops, clearsAfterStop) => {
const videoItem = await loadSVGA(url); const videoItem = await loadSVGA(url);
var svga = new SVGA.Player(className); var svga = new SVGA.Player(className);
// if (loops) if (loops)
// svga.loops = loops; svga.loops = loops;
// if (clearsAfterStop) if (clearsAfterStop)
// svga.clearsAfterStop = clearsAfterStop; svga.clearsAfterStop = clearsAfterStop;
svga.setVideoItem(videoItem); svga.setVideoItem(videoItem);
svga.startAnimation(); svga.startAnimation();
return svga return svga
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment