mirror of
https://github.com/whyour/qinglong.git
synced 2025-09-12 05:52:47 +08:00
This commit is contained in:
parent
6063bc3a67
commit
b1264a9b3a
|
@ -107,7 +107,7 @@ export default class DependenceService {
|
||||||
query: any = {},
|
query: any = {},
|
||||||
): Promise<Dependence[]> {
|
): Promise<Dependence[]> {
|
||||||
let condition = query;
|
let condition = query;
|
||||||
if (type && ['nodejs', 'python3', 'linux'].includes(type)) {
|
if (DependenceTypes[type]) {
|
||||||
condition.type = DependenceTypes[type];
|
condition.type = DependenceTypes[type];
|
||||||
} else condition.type = [0, 1, 2];
|
} else condition.type = [0, 1, 2];
|
||||||
if (status) {
|
if (status) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user