Replies: 4 comments
-
试试 share 加上 |
Beta Was this translation helpful? Give feedback.
0 replies
-
已经添加了,需要将dependencies下所有的依赖都添加吗? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
暴露组件的vue2项目 和 引用组件的vue2项目中都包含调用接口使用的公用函数
axios.js
......
export const getRequest = (url, params) => {
let accessTokenRoad = getStore('accessTokenRoad');
return axios({
method: 'get',
url:
${base}${url}
,params: params,
headers: {
'accessToken': accessTokenRoad
}
});
};
......
这种情况下,被引用的项目需要将 axios 也暴露出来吗
项目调试时,报如下的错误
Beta Was this translation helpful? Give feedback.
All reactions