说明:当前开发环境为windows,node版本使用16.15.1。启动web时,确保后端服务已准备就绪。
1.linkis web编译
#进入项目WEB根目录
$ cd linkis/linkis-web
#安装项目所需依赖
$ npm install
参考官方编译说明,windows下编译一直异常,切换不同的node版本,均报错:
根据报错信息,修改package.json文件,删除preinstall脚本(具体什么原因不太清楚),删除node_modules目录,再次编译,执行成功。
 {
this.isHomePage = false;
this.isConsolePage = true;
this.currentId = -1;
//const url =
// location.origin + "/dss/linkis/?noHeader=1&noFooter=1#/console";
const url = "http://localhost:8081/?noHeader=1&noFooter=1/#/console";
this.$router.push({
path: '/commonIframe/linkis',
query: {
workspaceId: this.$route.query.workspaceId,
url
}
});
},
重新运行dss web,管理台可丝滑访问!