router.index_watch

This commit is contained in:
藤之内
2018-09-20 14:40:48 +08:00
parent bdf3837331
commit 8237f2f06b
5 changed files with 8 additions and 15 deletions

View File

@@ -30,7 +30,7 @@
</div>
</body>
<!--引用 vue-rap文件-->
<script src="../rap.1.2.2.js"></script>
<script src="../rap.laster.js"></script>
<style>
:root {

1
rap.1.2.2.min.js vendored

File diff suppressed because one or more lines are too long

1
rap.1.2.3.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@@ -549,16 +549,12 @@
};
},
watch: {
'router': {
handler: function () {
var init = this.$options.init;
if (init) {
init.apply(this, [Rap.global_router.query, Rap.global_router.search]);
}
},
deep: true
}, 'RapViews.index': function () {
'RapViews.index': function () {
this.$options.RapViews.apply(this);
var init = this.$options.init;
if (init) {
init.apply(this, [Rap.global_router.query, Rap.global_router.search]);
}
}
},
RapViews: function () {
@@ -572,9 +568,6 @@
if (index + 1 < this.RapViews.items.length) {
this.childView = this.RapViews.items[index + 1];
}
},
beforeCreate: function () {
},
created: function () {
if (style) {

2
rap.laster.min.js vendored

File diff suppressed because one or more lines are too long