Skip to content

Commit 5385a48

Browse files
committed
remove unused vuex code
1 parent deff0dd commit 5385a48

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

pages/API/get-network-type/get-network-type.vue

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,16 @@
1616
</view>
1717
</view>
1818
<view class="uni-btn-v uni-common-mt">
19-
<button type="primary" @tap="getNetworkType">获取设备网络状态</button>
20-
<!-- #ifdef MP-WEIXIN -->
21-
<button v-if="hasNetworkType === true && networkType === 'wifi'" class="uni-common-mt" type="primary" @tap="getConnectedWifi">获取 wifi 信息</button>
22-
<!-- #endif -->
19+
<button type="primary" @tap="getNetworkType">获取设备网络状态</button>
20+
<!-- #ifdef MP-WEIXIN -->
21+
<button v-if="hasNetworkType === true && networkType === 'wifi'" class="uni-common-mt" type="primary" @tap="getConnectedWifi">获取 wifi 信息</button>
22+
<!-- #endif -->
2323
<button class="uni-common-mt" @tap="clear">清空</button>
2424
</view>
2525
</view>
2626
</view>
2727
</template>
2828
<script>
29-
import { mapState } from 'vuex'
3029
export default {
3130
data() {
3231
return {
@@ -58,8 +57,8 @@
5857
this.hasNetworkType = false,
5958
this.networkType = '',
6059
this.connectedWifi = ''
61-
},
62-
// #ifdef MP-WEIXIN
60+
},
61+
// #ifdef MP-WEIXIN
6362
getConnectedWifi() {
6463
const that = this
6564
uni.startWifi({
@@ -76,8 +75,8 @@
7675
fail: function(res) {
7776
}
7877
})
79-
}
80-
// #endif
78+
}
79+
// #endif
8180
}
8281
}
8382
</script>

0 commit comments

Comments
 (0)