|
@@ -107,15 +107,22 @@ export default defineComponent({
|
|
|
// 获取应用APP信息
|
|
|
console.log(props.appKey, 'appKey')
|
|
|
try {
|
|
|
- const { data } = await sysApplicationPage({ page: 1, rows: 1, appKey: props.appKey })
|
|
|
+ // , appKey: props.appKey,
|
|
|
+ const { data } = await sysApplicationPage({ page: 1, rows: 1, hiddenFlag: true })
|
|
|
const tempList = data.rows || []
|
|
|
if (!tempList || tempList.length == 0) {
|
|
|
state.loading = false
|
|
|
message.error('加载项目信息失败')
|
|
|
return
|
|
|
}
|
|
|
- state.appId = tempList[0].id
|
|
|
- state.applicationId = tempList[0].id
|
|
|
+ tempList.forEach((item: any) => {
|
|
|
+ if(item.appKey === props.appKey) {
|
|
|
+ state.appId = item.id
|
|
|
+ state.applicationId = item.id
|
|
|
+ }
|
|
|
+ })
|
|
|
+ // state.appId = tempList[0].id
|
|
|
+ // state.applicationId = tempList[0].id
|
|
|
} catch {}
|
|
|
|
|
|
// 加载声部
|