mirror of
https://github.com/tencentmusic/supersonic.git
synced 2026-04-19 04:44:19 +08:00
[feature](webapp) add script command to accommodate different Node.js versions and change lerna + npm to pnpm workspaces (#61)
This commit is contained in:
@@ -62,6 +62,9 @@ const ExecuteItem: React.FC<Props> = ({
|
||||
</div>
|
||||
<div className={`${prefixCls}-content-container ${prefixCls}-last-node`}>
|
||||
<Spin spinning={entitySwitchLoading}>
|
||||
{data.queryAuthorization?.message && (
|
||||
<div className={`${prefixCls}-auth-tip`}>提示:{data.queryAuthorization.message}</div>
|
||||
)}
|
||||
{data?.queryMode === 'WEB_PAGE' ? (
|
||||
<WebPage id={queryId!} data={data} />
|
||||
) : (
|
||||
|
||||
@@ -31,7 +31,7 @@ const FilterItem: React.FC<Props> = ({ modelId, filters, filter, onFiltersChange
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
if (typeof filter.value === 'string' && options.length === 0) {
|
||||
if ((typeof filter.value === 'string' || isArray(filter.value)) && options.length === 0) {
|
||||
initData();
|
||||
}
|
||||
}, []);
|
||||
|
||||
@@ -228,10 +228,14 @@ const ParseTip: React.FC<Props> = ({
|
||||
|
||||
const entityDimensions = entityInfo?.dimensions?.filter(
|
||||
item =>
|
||||
!['zyqk_song_id', 'song_name', 'singer_id'].includes(item.bizName) &&
|
||||
!['zyqk_song_id', 'song_name', 'singer_id', 'zyqk_cmpny_id'].includes(item.bizName) &&
|
||||
!(
|
||||
entityInfo?.dimensions?.some(dimension => dimension.bizName === 'singer_id') &&
|
||||
item.bizName === 'singer_name'
|
||||
) &&
|
||||
!(
|
||||
entityInfo?.dimensions?.some(dimension => dimension.bizName === 'zyqk_cmpny_id') &&
|
||||
item.bizName === 'cmpny_name'
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
@@ -113,6 +113,13 @@
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
&-auth-tip {
|
||||
font-size: 13px;
|
||||
color: var(--text-color-secondary);
|
||||
margin-bottom: 12px;
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
&-switch-entity-tip {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
Reference in New Issue
Block a user