Commit ae226a6d72e30eb9205a989f661b653c9f2bc745

Authored by xp.Huang
2 parents 7dc91fcf 113dc1f7

Merge branch 'fix/preview-get-all-content' into 'main_dev'

fix: 修复预览模式下获取数据源包含不属于当前组态的数据源

See merge request yunteng/thingskit-scada!109
... ... @@ -12,8 +12,9 @@ class ConfigurationNodeApi {
12 12 * @param {'CONFIGURE' | 'CONTENT' | 'NODE'} levelType - 组态资源类型
13 13 * @param {string} levelId - 组态资源ID
14 14 */
15   - static getConfigurationInfo(levelType, levelId) {
16   - return defHttp.get(`/yt/configuration/node/${levelType}/${levelId}`)
  15 + static getConfigurationInfo( levelType, levelId) {
  16 + var configurationId = urlParams['configurationId']
  17 + return defHttp.get(`/yt/configuration/node/${configurationId}/${levelType}/${levelId}`)
17 18 }
18 19
19 20 /**
... ...