提交 ee26a2ef 编写于 作者: study夏羽's avatar study夏羽

fix:条件编译

上级 d126a8e9
......@@ -19,9 +19,10 @@
</view>
</template>
<script>
// #ifdef APP
// #ifdef APP-PLUS
import UniShare from '@/uni_modules/uni-share/js_sdk/uni-share.js';
const uniShare = new UniShare()
// #endif
export default {
// #ifdef APP-PLUS
onBackPress({from}) {
......@@ -40,8 +41,7 @@
},
computed: {
uniStarterConfig() {
console.log(getApp());
return getApp().globalData.config
return getApp({allowDefault: true}).globalData.config
}
},
data() {
......@@ -86,7 +86,7 @@
"text": this.$t('common').wechatBbs,
"share": {
"provider": "weixin",
"scene": "WXSenceTimeline"
"scene": "WXSceneTimeline"
}
},
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册