我在一个Vuejs文件中有这个函数,它调用从JS文件导入的另一个函数。Demo.vue import Data from "demofile.js"
this.getResult()async getResult((this.results) .catch(e =>console.log(e, "Error from catch")) } 我想让这个函数可重用,这样我就可
在我的Vuejs项目中,我有一些常见的js函数,可以通过多个组件来使用:├── index.html├── components│ └── ... ├── store.js # exports the store (with initial state and mutations)
└── actions.js # exports all act