Make a tag where the options contain a value equal to the name of your .js file. When the selection changes, run a method that dynamically imports the file and assigns the imported data to variables you pass as properties to the Graph component. Simple sample code:

 
data() { return { data: null, }; }, methods: { selectFile(e) { import(`@/data/${e.target.value}.js`).then((res) => { this.data = res.data; }); }, },
    Popular Topics
    More>
    Popular Articles
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!