lib.cheat.u改回兼容旧版传参2(但提示废弃)
This commit is contained in:
parent
e28fac757a
commit
33f5942ffb
|
@ -8916,7 +8916,7 @@ export class Library extends Uninstantable {
|
||||||
}
|
}
|
||||||
else if (typeof args[i] == 'object' && args[i] != null && args[i].name) {
|
else if (typeof args[i] == 'object' && args[i] != null && args[i].name) {
|
||||||
console.warn('lib.cheat.u: 以普通obj形式传入的类卡牌形式已经废弃');
|
console.warn('lib.cheat.u: 以普通obj形式传入的类卡牌形式已经废弃');
|
||||||
card = args[i];
|
card = new lib.element.VCard(args[i]);
|
||||||
}
|
}
|
||||||
else if (typeof args[i] == 'string') {
|
else if (typeof args[i] == 'string') {
|
||||||
card = new lib.element.VCard({ name: args[i] });
|
card = new lib.element.VCard({ name: args[i] });
|
||||||
|
|
Loading…
Reference in New Issue