Răsfoiți Sursa

fix: 修复设计器跳转卡死的问题

yanglzh 5 luni în urmă
părinte
comite
e3fdf214d7
1 a modificat fișierele cu 1 adăugiri și 7 ștergeri
  1. 1 7
      src/views/designer/index.vue

+ 1 - 7
src/views/designer/index.vue

@@ -79,11 +79,6 @@ const { params, tableData, getList, loading } = useSearch<any[]>(api.getList, 'D
 
 getList()
 
-function getTokenUrl(url: string) {
-	const tokenUrl = import.meta.env.VITE_DESIGN_URL
-	return tokenUrl + url
-}
-
 const view = (row: any) => {
 	window.open('/designer/' + row.code)
 }
@@ -93,8 +88,7 @@ const addOrEdit = async (row?: any) => {
 }
 
 const edit = (row: any) => {
-	const url = getTokenUrl('#' + row.code)
-	window.open(url)
+	window.open(import.meta.env.VITE_DESIGN_URL + '/#' + row.code, row.name, 'noopener')
 }
 
 const bindMenu = (row: any) => {