Skip to content

Commit a4653fd

Browse files
committed
feat(template)
1 parent 6d04d88 commit a4653fd

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/design-core/src/template/src/template/AppCenter.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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) => {

packages/design-core/src/template/src/template/TemplateCenter.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)