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

fix:条件编译

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