提交 90f43296 编写于 作者: tony001's avatar tony001

首页导航模式 --- fix11

上级 90afee67
......@@ -264,16 +264,17 @@
* @memberof ${srfclassname('${view.name}')}Base
*/
public afterCreated(){
const secondtag = this.$util.createUUID();
this.$store.commit('viewaction/createdView', { viewtag: this.viewtag, secondtag: secondtag });
this.viewtag = secondtag;
this.parseViewParam();
this.serviceStateEvent = this.navDataService.serviceState.subscribe(({ action, data }) => {
let _this = this;
const secondtag = _this.$util.createUUID();
_this.$store.commit('viewaction/createdView', { viewtag: _this.viewtag, secondtag: secondtag });
_this.viewtag = secondtag;
_this.parseViewParam();
_this.serviceStateEvent = _this.navDataService.serviceState.subscribe(({ action, data }) => {
if (Object.is(action, 'viewrefresh')) {
this.$nextTick(()=>{
this.parseViewParam(data);
if(this.engine){
this.engine.load();
_this.$nextTick(()=>{
_this.parseViewParam(data);
if(_this.engine){
_this.engine.load();
}
});
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册