Skip to content

Commit 9023696

Browse files
committed
fix:我的应用id传值问题
1 parent 2f41c23 commit 9023696

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • packages/workspace/application-center/src

packages/workspace/application-center/src/Main.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ import { reactive, ref, onMounted } from 'vue'
9595
import { Button, Select, Pager, Grid, GridColumn, Divider, Search, Modal, Notify } from '@opentiny/vue'
9696
import { iconSearch } from '@opentiny/vue-icon'
9797
import { SearchEmpty } from '@opentiny/tiny-engine-common'
98+
import { getMetaApi, META_SERVICE } from '@opentiny/tiny-engine-meta-register'
9899
import AppDialog from './AppDialog.vue'
99100
import { fetchApplicationList, createApplication, updateApplication, deleteApplication } from './js/http'
100101
@@ -113,6 +114,7 @@ export default {
113114
},
114115
115116
setup() {
117+
const { getUserInfo } = getMetaApi(META_SERVICE.GlobalService)
116118
const appList = ref([])
117119
118120
const appFilterOptions = [
@@ -165,11 +167,12 @@ export default {
165167
})
166168
167169
const getApplicationList = () => {
170+
const info = getUserInfo()
168171
const params = {
169172
currentPage: state.currentPage,
170173
pageSize: state.pageSize,
171174
name: state.appSearchKey,
172-
createdBy: state.appFilter === 'all' ? '' : '1'
175+
createdBy: state.appFilter === 'all' ? '' : info.id
173176
}
174177
if (state.orderBy === 'last_updated_time') {
175178
params.orderBy = state.orderBy

0 commit comments

Comments
 (0)