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

首页导航模式 --- fix11

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