mirror of
https://gitee.com/tengzhinei/Vue-rap.git
synced 2025-12-24 08:12:44 +08:00
router.index_watch
This commit is contained in:
@@ -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
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
1
rap.1.2.3.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -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
2
rap.laster.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user