forked from rc/aircox
upgrade vue and assets
This commit is contained in:
11
assets/src/sound.js
Normal file
11
assets/src/sound.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import Model from './model';
|
||||
|
||||
|
||||
export default class Sound extends Model {
|
||||
get name() { return this.data.name }
|
||||
get src() { return this.data.url }
|
||||
|
||||
static getId(data) { return data.pk }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user