File tree Expand file tree Collapse file tree 1 file changed +9
-25
lines changed Expand file tree Collapse file tree 1 file changed +9
-25
lines changed Original file line number Diff line number Diff line change 16
16
</view>
17
17
</template>
18
18
<script>
19
- import {
20
- mapState,
21
- mapMutations
22
- } from 'vuex';
23
- export default {
19
+ export default {
20
+ props: {
21
+ hasLeftWin: {
22
+ type: Boolean
23
+ },
24
+ leftWinActive: {
25
+ type: String
26
+ }
27
+ },
24
28
data() {
25
29
return {
26
30
hideList: [
237
241
url: '/pages/about/about'
238
242
});
239
243
},
240
- computed: {
241
- ...mapState({
242
- hasLeftWin: state => !state.noMatchLeftWindow,
243
- leftWinActive: state => state.leftWinActive.split('/')[3],
244
- activeOpen: state => state.activeOpen
245
- })
246
- },
247
- // #ifdef H5
248
- watch: {
249
- $route: {
250
- immediate: true,
251
- handler(newRoute) {
252
- if (newRoute.matched.length) {
253
- this.setLeftWinActive(newRoute.path)
254
- }
255
- }
256
- }
257
- },
258
- // #endif
259
244
methods: {
260
- ...mapMutations(['setLeftWinActive']),
261
245
goDetailPage(path) {
262
246
const url = '/pages/extUI/' + path + '/' + path
263
247
if (this.hasLeftWin) {
You can’t perform that action at this time.
0 commit comments