mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-16 22:42:16 +00:00
use FHC_JS_DATA_STORAGE_OBJECT for apiurl
This commit is contained in:
@@ -4,17 +4,21 @@ import CachedWidgetLoader from "../../composables/Dashboard/CachedWidgetLoader.j
|
||||
import ObjectUtils from "../../composables/ObjectUtils.js";
|
||||
|
||||
export default {
|
||||
components: {
|
||||
DashboardSection,
|
||||
DashboardWidgetPicker
|
||||
},
|
||||
props: [
|
||||
"dashboard",
|
||||
"apiurl"
|
||||
"dashboard"
|
||||
],
|
||||
data: () => ({
|
||||
sections: [],
|
||||
widgets: null
|
||||
}),
|
||||
components: {
|
||||
DashboardSection,
|
||||
DashboardWidgetPicker
|
||||
computed: {
|
||||
apiurl() {
|
||||
return FHC_JS_DATA_STORAGE_OBJECT.app_root + FHC_JS_DATA_STORAGE_OBJECT.ci_router + '/dashboard';
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
widgetAdd(section_name, widget) {
|
||||
@@ -117,7 +121,6 @@ export default {
|
||||
}
|
||||
},
|
||||
created() {
|
||||
CachedWidgetLoader.setPath(this.apiurl + '/Widget');
|
||||
axios.get(this.apiurl + '/Config', {params:{
|
||||
db: this.dashboard
|
||||
}}).then(res => {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
let __widgets = {};
|
||||
let __widgetsStarted = {};
|
||||
let __path = '';
|
||||
let __path = FHC_JS_DATA_STORAGE_OBJECT.app_root + FHC_JS_DATA_STORAGE_OBJECT.ci_router + '/dashboard/Widget';
|
||||
|
||||
export default {
|
||||
getWidget(id) {
|
||||
|
||||
Reference in New Issue
Block a user