Commit 0473ce38 authored by Lily Wang's avatar Lily Wang

update

parent 424962a8
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="theme-color" content="#0d1c34" /> <meta name="theme-color" content="#0d1c34" />
<meta name="description" content="维京游轮行程调整确认函" /> <meta name="description" content="维京游轮行程调整确认函" />
<link rel="manifest" href="/river-refunds/manifest.json" /> <link rel="manifest" href="/manifest.json" />
<title>维京游轮行程调整确认函</title> <title>维京游轮行程调整确认函</title>
</head> </head>
<body> <body>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"scripts": { "scripts": {
"dev": "vite --host 0.0.0.0 --port 5173", "dev": "vite --host 0.0.0.0 --port 5173",
"dev:development": "vite --mode development --host 0.0.0.0 --port 5173", "dev:development": "vite --mode development --host 0.0.0.0 --port 5173",
"dev:staging": "vite --mode staging --host 0.0.0.0 --port 5173", "dev:staging": "vite --mode staging --host 0.0.0.0 --port 5174 --strictPort",
"dev:production": "vite --mode production --host 0.0.0.0 --port 5173", "dev:production": "vite --mode production --host 0.0.0.0 --port 5173",
"build": "vite build", "build": "vite build",
"build:staging": "vite build --mode staging", "build:staging": "vite build --mode staging",
......
...@@ -35,7 +35,7 @@ function normalizeDeviationPayload(payload) { ...@@ -35,7 +35,7 @@ function normalizeDeviationPayload(payload) {
} }
function parseRecordData(record) { function parseRecordData(record) {
const rawData = record?.data || record?.fields || record?.value || {}; const rawData = record?.metadata || record?.data || record?.fields || record?.value || {};
if (typeof rawData === 'string') { if (typeof rawData === 'string') {
try { try {
...@@ -52,11 +52,11 @@ function normalizeTermRecord(record) { ...@@ -52,11 +52,11 @@ function normalizeTermRecord(record) {
const data = parseRecordData(record); const data = parseRecordData(record);
return { return {
code: record?.code || data.code || record?.slug || data.slug || '', code: data.code || record?.code || record?.slug || data.slug || '',
desc: record?.desc || data.desc || record?.description || data.description || '', desc: data.desc || record?.desc || record?.description || data.description || '',
content: content:
record?.content ||
data.content || data.content ||
record?.content ||
record?.post_content || record?.post_content ||
data.post_content || data.post_content ||
record?.html || record?.html ||
......
...@@ -35,3 +35,31 @@ ...@@ -35,3 +35,31 @@
12:09:27 [vite] .env.development changed, restarting server... 12:09:27 [vite] .env.development changed, restarting server...
12:09:27 [vite] (client) Re-optimizing dependencies because vite config has changed 12:09:27 [vite] (client) Re-optimizing dependencies because vite config has changed
12:09:27 [vite] server restarted. 12:09:27 [vite] server restarted.
12:37:43 [vite] vite.config.js changed, restarting server...
12:37:43 [vite] server restarted.
➜ Local: http://localhost:5173/
➜ Network: http://172.18.0.1:5173/
➜ Network: http://192.168.110.101:5173/
12:37:43 [vite] vite.config.js changed, restarting server...
12:37:43 [vite] server restarted.
12:37:43 [vite] vite.config.js changed, restarting server...
12:37:43 [vite] server restarted.
12:37:43 [vite] vite.config.js changed, restarting server...
12:37:43 [vite] server restarted.
12:37:44 [vite] vite.config.js changed, restarting server...
12:37:44 [vite] server restarted.
12:37:44 [vite] vite.config.js changed, restarting server...
12:37:44 [vite] server restarted.
12:37:49 [vite] (client) page reload index.html
12:37:49 [vite] (client) page reload index.html
12:37:49 [vite] (client) page reload index.html
12:37:49 [vite] (client) page reload index.html
12:37:49 [vite] (client) page reload index.html
12:39:38 [vite] vite.config.js changed, restarting server...
12:39:38 [vite] (client) Re-optimizing dependencies because vite config has changed
12:39:38 [vite] server restarted.
➜ Local: http://localhost:5173/river-refunds/
➜ Network: http://172.18.0.1:5173/river-refunds/
➜ Network: http://192.168.110.101:5173/river-refunds/
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment