Skip to content

Commit

Permalink
update: uniCloud运行到H5的提示
Browse files Browse the repository at this point in the history
  • Loading branch information
Wangyaqi committed Feb 16, 2020
1 parent 0f32997 commit ad0eb85
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion packages/vue-cli-plugin-uni/commands/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ module.exports = (api, options) => {

if (!isProduction) {
if (process.UNI_CLOUD) {
console.warn(`当前项目使用了uniCloud,为避免云函数调用跨域问题,建议在HBuilderX内置浏览器里调试,如使用外部浏览器需处理跨域,详见:https://uniapp.dcloud.io/uniCloud/quickstart-H5`)
console.warn(`当前项目使用了uniCloud,为避免云函数调用跨域问题,建议在HBuilderX内置浏览器里调试,如使用外部浏览器需处理跨域,详见:https://uniapp.dcloud.io/uniCloud/quickstart?id=useinh5`)
}
// const buildCommand = hasProjectYarn(api.getCwd()) ? `yarn build` : `npm run build`
// console.log(` Note that the development build is not optimized.`)
Expand Down
1 change: 0 additions & 1 deletion packages/vue-cli-plugin-uni/lib/env.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ if (process.env.UNI_CLOUD_SPACES) {
} catch (e) {}
}

// h5 暂不支持阿里云服务空间
if (
process.UNI_CLOUD &&
process.env.UNI_PLATFORM === 'h5' &&
Expand Down

0 comments on commit ad0eb85

Please sign in to comment.