add mount of menu
fix store usage add page loader
This commit is contained in:
+6
-2
@@ -1,6 +1,6 @@
|
||||
import { defineStore } from 'pinia'
|
||||
import { ref } from 'vue'
|
||||
import { axios } from '@nextcloud/axios'
|
||||
import axios from '@nextcloud/axios'
|
||||
import { generateUrl } from '@nextcloud/router'
|
||||
|
||||
export const useConfigStore = defineStore('config', () => {
|
||||
@@ -11,8 +11,12 @@ export const useConfigStore = defineStore('config', () => {
|
||||
return config.value
|
||||
}
|
||||
|
||||
config.value = await fetch(generateUrl('/apps/side_menu/js/config')).then((response) => response.data)
|
||||
config.value = await axios.get(generateUrl('/apps/side_menu/js/config')).then((response) => response.data)
|
||||
|
||||
return config.value
|
||||
}
|
||||
|
||||
return {
|
||||
getConfig,
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user