Commit 740db9af authored by 神楽坂玲奈's avatar 神楽坂玲奈

fix

parent af78fe45
......@@ -19,7 +19,13 @@ export class NewRoomComponent {
room = {
title: this.login.user.username + '的房间',
'private': false,
options: { ...this.ygopro.default_options }
options: {
...this.ygopro.default_options,
// material select 只认 string
mode: this.ygopro.default_options.mode.toString(),
rule: this.ygopro.default_options.rule.toString(),
}
};
constructor(public ygopro: YGOProService, private login: LoginService, private snackBar: MdSnackBar) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment