Add cache

This commit is contained in:
Peng-YM committed 2020-08-26 21:09:34 +08:00
1 parent 1b0f8f124e
commit 1fcc1f77d7
5 files changed
+164 -106

No files matched your search

+6 -1
View File
@@ -31,6 +31,7 @@
import TopToolbar from "@/components/TopToolbar";
import BottomNav from "@/components/BottomNav";
function initStore(store) {
store.dispatch('FETCH_SUBSCRIPTIONS');
store.dispatch("FETCH_COLLECTIONS");
@@ -72,4 +73,8 @@ export default {
}
}
}
</script>
</script>
<style>
</style>
+1 -1
View File
@@ -1,3 +1,3 @@
const DEBUG = true;
export const BACKEND_BASE = DEBUG ? `http://127.0.0.1:3000` : `http://sub.store`;
export const BACKEND_BASE = DEBUG ? `http://192.168.1.134:3000` : `http://sub.store`;