flowrix 1.0.1-beta.69 → 1.0.1-beta.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json
CHANGED
|
@@ -28,7 +28,7 @@ export default defineEventHandler(async (event) => {
|
|
|
28
28
|
} catch (error) {
|
|
29
29
|
throw createError({
|
|
30
30
|
statusCode: 500,
|
|
31
|
-
statusMessage: `Failed to fetch
|
|
31
|
+
statusMessage: `Failed to fetch countires `,
|
|
32
32
|
data: error.message
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { defineStore } from "pinia";
|
|
2
|
-
import { $fetch } from "ofetch";
|
|
3
2
|
export const useCountriesStore = defineStore("countries", {
|
|
4
3
|
state: () => ({
|
|
5
4
|
countries: [],
|
|
@@ -7,9 +6,9 @@ export const useCountriesStore = defineStore("countries", {
|
|
|
7
6
|
error: null
|
|
8
7
|
}),
|
|
9
8
|
actions: {
|
|
10
|
-
async
|
|
11
|
-
const
|
|
12
|
-
|
|
9
|
+
async getCountries() {
|
|
10
|
+
const response = await $fetch("/api/countries");
|
|
11
|
+
this.countries = response;
|
|
13
12
|
return response;
|
|
14
13
|
}
|
|
15
14
|
}
|