The picture and text are looped out, the text is transmitted in the background, and the picture is provided by UI, so is there any simple way to display this picture? My method feels stupid.

clipboard.png

Ui



clipboard.png

I feel that this method is too stupid. Is there any better way?
before I put these pictures directly in the static directory, and then write operations in js, the amount of code is very small.

            Image(key){//            
                return `../../static/img/RiskAssessment${key+1}.png`
            }

but after the package comes out, the path of the picture is all wrong. Is there any good way to do it

?
Jul.07,2021

/ static, does not need.. /


strictly speaking, these pictures should be sent to the background to ensure an one-to-one correspondence. You can ask your backend to do this function

.
Menu