1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-16 12:05:26 +02:00
This commit is contained in:
syuilo
2020-08-09 10:49:28 +09:00
parent 2b89707012
commit ddcd3c3305
6 changed files with 70 additions and 12 deletions

View File

@@ -46,7 +46,7 @@ export default function <T extends Form>(data: {
const defaultProps = data.props();
for (const prop of Object.keys(defaultProps)) {
if (this.props.hasOwnProperty(prop)) continue;
Vue.set(this.props, prop, defaultProps[prop].default);
this.props[prop] = defaultProps[prop].default;
}
}
},
@@ -60,7 +60,7 @@ export default function <T extends Form>(data: {
if (canceled) return;
for (const key of Object.keys(result)) {
Vue.set(this.props, key, result[key]);
this.props[key] = result[key];
}
this.save();