Commit 533c7684 authored by wudizhanche1000's avatar wudizhanche1000

Fix: 存本地apps.json没有toJSON

parent 99468679
......@@ -72,10 +72,10 @@ export class AppsService {
}
async loadApps() {
let appsURL = 'https://wudizhanche.mycard.moe/downloads/apps.json';
let appsURL = 'https://api.mycard.moe/apps.json';
try {
let data = await this.http.get(appsURL).map((response) => response.json()).toPromise();
localStorage.setItem("apps_json", appsURL);
localStorage.setItem("apps_json", JSON.stringify(data));
this.apps = this.loadAppsList(data);
} catch (e) {
let data = localStorage.getItem("apps_json");
......
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