@eeplatform/nuxt-layer-common 1.7.49 → 1.7.50

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @eeplatform/nuxt-layer-common
2
2
 
3
+ ## 1.7.50
4
+
5
+ ### Patch Changes
6
+
7
+ - 8a5c056: Fix index page error handling
8
+
3
9
  ## 1.7.49
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@eeplatform/nuxt-layer-common",
3
3
  "license": "MIT",
4
4
  "type": "module",
5
- "version": "1.7.49",
5
+ "version": "1.7.50",
6
6
  "main": "./nuxt.config.ts",
7
7
  "publishConfig": {
8
8
  "access": "public"
package/pages/login.vue CHANGED
@@ -131,7 +131,9 @@ async function submit({ email = "", password = "" } = {}) {
131
131
 
132
132
  await redirect(APP_ACCOUNT, "home");
133
133
  } catch (error: any) {
134
- message.value = error.data.message;
134
+ message.value =
135
+ error.response.data.message ??
136
+ "An error occurred during login. Please try again.";
135
137
  } finally {
136
138
  loading.value = false;
137
139
  }