[mod] move links
This commit is contained in:
parent
8d47b8c9c3
commit
b001d124f6
6 changed files with 7 additions and 2 deletions
|
|
@ -1,3 +1,4 @@
|
|||
# hack file:// load
|
||||
if (/^file:\/\/\//.test(location.href)) {
|
||||
let path = './';
|
||||
let orig = fetch;
|
||||
|
|
@ -46,7 +47,7 @@ var app = new Vue({
|
|||
methods:{
|
||||
load() {
|
||||
this.hits += 1
|
||||
fetch("data.json")
|
||||
fetch("links.json")
|
||||
.then(response => response.json())
|
||||
.then(data => (this.json = data));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue