File tree Expand file tree Collapse file tree
packages/design-core/src/template/src/template Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ export default {
191191 if (state .orderBy === ' last_updated_time' ) {
192192 params .orderBy = state .orderBy
193193 }
194- fetchApplicationList (Object .fromEntries (Object .entries (params).filter ((item ) => !! item[ 1 ] ))).then ((res ) => {
194+ fetchApplicationList (Object .fromEntries (Object .entries (params).filter (([, value ] ) => !! value ))).then ((res ) => {
195195 appList .value = res .apps || []
196196 state .total = res .total
197197 })
@@ -214,7 +214,7 @@ export default {
214214 if (res === ' confirm' ) {
215215 deleteApplication (template .id )
216216 .then (() => {
217- getTemplateList ()
217+ getApplicationList ()
218218 })
219219 .catch ((error ) => {
220220 Notify ({
@@ -230,7 +230,7 @@ export default {
230230
231231 const openApplication = (template ) => {
232232 const baseUrl = new URL (window .location .href ).origin
233- window .open (` ${ baseUrl} /type=app&id=${ template .id } &tenant=${ template .tenantId } ` , ' _blank' )
233+ window .open (` ${ baseUrl} /? type=app&id=${ template .id } &tenant=${ template .tenantId } ` , ' _blank' )
234234 }
235235
236236 const typeClick = (type ) => {
Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ export default {
170170 industryId: state .industry ,
171171 framework: state .framework
172172 }
173- fetchTemplateList (Object .fromEntries (Object .entries (params).filter ((item ) => !! item[ 1 ] )))
173+ fetchTemplateList (Object .fromEntries (Object .entries (params).filter (([, value ] ) => !! value )))
174174 .then ((res ) => {
175175 templateList .value = res .apps || []
176176 state .total = res .total
You can’t perform that action at this time.
0 commit comments