|
|
@@ -100,6 +100,8 @@ const maps = computed<SiteMap[]>(() => [{
|
|
|
pagePath: routes.voluntaryIndex
|
|
|
}])
|
|
|
|
|
|
+const location = computed(() => userStore.getLocation);
|
|
|
+
|
|
|
const handleMap = (m: SiteMap) => {
|
|
|
if (m.handler) return m.handler()
|
|
|
if (!m.pagePath) return
|
|
|
@@ -118,6 +120,12 @@ const loadData = () => {
|
|
|
onLoad(() => {
|
|
|
loadData();
|
|
|
});
|
|
|
+watch(location, () => {
|
|
|
+ console.log('location', location.value)
|
|
|
+ if (location.value) {
|
|
|
+ loadData();
|
|
|
+ }
|
|
|
+});
|
|
|
</script>
|
|
|
|
|
|
<style scoped></style>
|