Browse Source

权限调整

Leo 2 years ago
parent
commit
461e6c35c4
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/module/datasource/page/DatasourceView.jsx

+ 2 - 1
src/module/datasource/page/DatasourceView.jsx

@@ -334,7 +334,8 @@ export default function DatasourceView() {
               value={currentDataType}
               value={currentDataType}
               onChange={changeDataType}
               onChange={changeDataType}
               options={
               options={
-                ['1', '2', '3'].includes(sessionStorage.getItem('role'))
+                ['1', '2', '3'].includes(sessionStorage.getItem('role')) &&
+                sessionStorage.getItem('project_type') === '0'
                   ? [
                   ? [
                       { value: 'datasource', label: '自添加数据源' },
                       { value: 'datasource', label: '自添加数据源' },
                       { value: 'ailab', label: 'AIlab' },
                       { value: 'ailab', label: 'AIlab' },