在我的Vuejs项目中,我有一些常见的js函数,可以通过多个组件来使用:├── index.html├── components│ └── ... ├── store.js # exports the store (with initial state and mutations)
└── actions.js # exports all act
我在我的VueJS 3应用程序中遇到了一个简单的导入问题。我正在将外部文件导入main.js:import * as myService from "./services/myService.js"; 然后也是在main.js中:app.provide("myService", myService); 然后在我的组件中我有: <script>
export如果我在main.js中调用var result = myS