Can the js file packaged by vue.js still accept data?

I have a requirement now. After packaging, I call the packaged js file on other web pages, and then transfer the data. Is that okay? I tried it myself, but it didn"t seem to work.

Jun.13,2022

what does it mean to accept the data? you can describe the scenario of the problem more clearly

Menu