Skip to content

Commit

Permalink
fix: appid
Browse files Browse the repository at this point in the history
  • Loading branch information
yy-wow committed Nov 6, 2024
1 parent 4f090aa commit 861511d
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default {
const fetchDataSourceList = (appId) => getMetaApi(META_SERVICE.Http).get(`/app-center/api/sources/list/${appId}`)
const appId = getMetaApi(META_SERVICE.GlobalService).getState().appInfo.id
const appId = getMetaApi(META_SERVICE.GlobalService).getBaseInfo().id
fetchDataSourceList(appId).then((data) => {
options.value = data
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ export default {
} else if (item.id === 'datasource') {
state.bindPrefix = CONSTANTS.DATASOUCEPREFIX
const url = new URLSearchParams(location.search)
const appId = getMetaApi(META_SERVICE.GlobalService).getState().appInfo.id
const appId = getMetaApi(META_SERVICE.GlobalService).getBaseInfo().id
const selectedId = appId || url.get('id')
// 实时请求数据源列表数据,保证数据源获取最新的数据源数据
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/bridge/src/BridgeSetting.vue
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export default {
category: getType(),
type: getCategory(),
name: state.name,
app: getMetaApi(META_SERVICE.GlobalService).getState().appInfo.id,
app: getMetaApi(META_SERVICE.GlobalService).getBaseInfo().id,
content: state.category
? state.content
: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default {
})
const saveGlobalDataHandle = () => {
const id = getMetaApi(META_SERVICE.GlobalService).getState().appInfo.id
const id = getMetaApi(META_SERVICE.GlobalService).getBaseInfo().id
const handler = {
dataHandler: { type: 'JSFunction', value: state.dataHandlerValue || DEFAULT_INTERCEPTOR.dataHandler.value },
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/datasource/src/DataSourceList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const activeIndex = ref(-1)
export const refresh = () => {
const url = new URLSearchParams(location.search)
const selectedId = getMetaApi(META_SERVICE.GlobalService).getState().appInfo.id || url.get('id')
const selectedId = getMetaApi(META_SERVICE.GlobalService).getBaseInfo().id || url.get('id')
fetchDataSourceList(selectedId).then((data) => {
dataSourceList.value = data
useCanvas().canvasApi.value.setDataSourceMap(data)
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/i18n/src/Main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ export default {
})
}
const handleChange = (data) => {
const appId = getMetaApi(META_SERVICE.GlobalService).getState().appInfo.id
const appId = getMetaApi(META_SERVICE.GlobalService).getBaseInfo().id
const action = `/app-center/api/apps/${appId}/i18n/entries/update`
const loadingTarget = notEmpty.value ? '#boxeight' : '#empty-loading-box'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default {
.filter((item) => item.id !== blockId)
.map((item) => ({ id: item.id, version: item.current_version }))
const appId = getMetaApi(META_SERVICE.GlobalService).getState().appInfo.id
const appId = getMetaApi(META_SERVICE.GlobalService).getBaseInfo().id
requestUpdateGroup({ id: groupId, blocks, app: appId }).then(() => {
isRefresh.value = true
emit('close')
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/materials/src/meta/block/src/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export const requestUpdateGroup = ({ id, name, app, blocks }) =>

// 更新区块版本
export const requestGroupBlockVersion = async ({ groupId, blockId, blockVersion }) => {
const app = getMetaApi(META_SERVICE.GlobalService).getState().appInfo.id
const app = getMetaApi(META_SERVICE.GlobalService).getBaseInfo().id
let blocks = await fetchGroupBlocksById({ groupId })

blocks = blocks.map((block) => ({
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/page/src/PageFolderSetting.vue
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export default {
const data = pageSettingState.currentPageData
const createParams = {
...data,
app: getMetaApi(META_SERVICE.GlobalService).getState().appInfo.id,
app: getMetaApi(META_SERVICE.GlobalService).getBaseInfo().id,
isPage: false
}
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/page/src/PageSetting.vue
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export default {
...page_content_state,
fileName: pageSettingState.currentPageData.name
},
app: getMetaApi(META_SERVICE.GlobalService).getState().appInfo.id,
app: getMetaApi(META_SERVICE.GlobalService).getBaseInfo().id,
isPage: true
}
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/robot/src/js/robotSetting.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const initBlockList = async () => {
if (state.blockList?.length) {
return
}
const appId = getMetaApi(META_SERVICE.GlobalService).getState().appInfo.id
const appId = getMetaApi(META_SERVICE.GlobalService).getBaseInfo().id
try {
const list = await getMetaApi(META_SERVICE.Http).get('/material-center/api/blocks', { params: { appId } })
setBlocks(list)
Expand Down

0 comments on commit 861511d

Please sign in to comment.