fix: fix the claim-add-raw view to work with axios
This commit is contained in:
@@ -1154,6 +1154,7 @@ export default class AccountViewView extends Vue {
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (error.status === 404) {
|
if (error.status === 404) {
|
||||||
// this is ok: the profile is not yet created
|
// this is ok: the profile is not yet created
|
||||||
|
logger.info("Note that axios may have logged an error but it just doesn't exist.");
|
||||||
} else {
|
} else {
|
||||||
databaseUtil.logConsoleAndDb(
|
databaseUtil.logConsoleAndDb(
|
||||||
"Error loading profile: " + errorStringForLog(error),
|
"Error loading profile: " + errorStringForLog(error),
|
||||||
|
|||||||
@@ -30,7 +30,6 @@
|
|||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Component, Vue } from "vue-facing-decorator";
|
import { Component, Vue } from "vue-facing-decorator";
|
||||||
import { AxiosInstance } from "axios";
|
|
||||||
|
|
||||||
import QuickNav from "../components/QuickNav.vue";
|
import QuickNav from "../components/QuickNav.vue";
|
||||||
import { NotificationIface, USE_DEXIE_DB } from "../constants/app";
|
import { NotificationIface, USE_DEXIE_DB } from "../constants/app";
|
||||||
@@ -54,7 +53,6 @@ export default class ClaimAddRawView extends Vue {
|
|||||||
$notify!: (notification: NotificationIface, timeout?: number) => void;
|
$notify!: (notification: NotificationIface, timeout?: number) => void;
|
||||||
$route!: RouteLocationNormalizedLoaded;
|
$route!: RouteLocationNormalizedLoaded;
|
||||||
$router!: Router;
|
$router!: Router;
|
||||||
axios!: AxiosInstance;
|
|
||||||
|
|
||||||
accountIdentityStr: string = "null";
|
accountIdentityStr: string = "null";
|
||||||
activeDid = "";
|
activeDid = "";
|
||||||
|
|||||||
Reference in New Issue
Block a user