|
@@ -78,7 +78,7 @@
|
|
|
:underline="false"
|
|
:underline="false"
|
|
|
icon="el-icon-view"
|
|
icon="el-icon-view"
|
|
|
v-if="row.formPath"
|
|
v-if="row.formPath"
|
|
|
- @click="handleAddOrEdit(row, row.formPath)"
|
|
|
|
|
|
|
+ @click="goDetail(row)"
|
|
|
>
|
|
>
|
|
|
处理
|
|
处理
|
|
|
</el-link>
|
|
</el-link>
|
|
@@ -197,6 +197,7 @@
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
goDetail(row) {
|
|
goDetail(row) {
|
|
|
|
|
+ console.log('111111111111111111');
|
|
|
console.log('row', row.formPath);
|
|
console.log('row', row.formPath);
|
|
|
const formPath = row.formPath;
|
|
const formPath = row.formPath;
|
|
|
if (!formPath) return;
|
|
if (!formPath) return;
|
|
@@ -204,8 +205,7 @@
|
|
|
const routerBase = this.$router.options.base || '/';
|
|
const routerBase = this.$router.options.base || '/';
|
|
|
// 判断目标路径是否属于当前子系统
|
|
// 判断目标路径是否属于当前子系统
|
|
|
const isCurrentApp =
|
|
const isCurrentApp =
|
|
|
- formPath.startsWith(routerBase) ||
|
|
|
|
|
- !formPath.startsWith('/page-');
|
|
|
|
|
|
|
+ formPath.startsWith(routerBase) || !formPath.startsWith('/page-');
|
|
|
if (isCurrentApp) {
|
|
if (isCurrentApp) {
|
|
|
// 本系统内跳转:去掉 base 前缀后使用 router.push
|
|
// 本系统内跳转:去掉 base 前缀后使用 router.push
|
|
|
const innerPath = formPath.startsWith(routerBase)
|
|
const innerPath = formPath.startsWith(routerBase)
|