Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
breast-feeding-ai-demo-web
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
朱国瑞
breast-feeding-ai-demo-web
Commits
f82345ac
Commit
f82345ac
authored
May 06, 2025
by
朱国瑞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支持使用传入的apikey
parent
a6c2b12e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
10 deletions
+31
-10
index.vue
src/views/index.vue
+20
-7
startIndex.vue
src/views/startIndex.vue
+11
-3
No files found.
src/views/index.vue
View file @
f82345ac
...
...
@@ -190,7 +190,15 @@ export default {
pageHeight
:
""
,
_isMobile
:
false
,
scale
:
0
,
lying
:
0
lying
:
0
,
config
:
{
apiKey
:
"DLAB-customername-12345687"
,
region
:
"apac"
,
completeUrl
:
"https://bfai-service-apac-uat.d-lab-services.danone.com/demo/#/complete"
,
incompleteUrl
:
"https://bfai-service-eu.d-lab-services.danone.com/demo/#/"
,
sdkUrl
:
"https://bfai-service-eu.d-lab-services.danone.com/sdk/#/"
},
usagetrackingkey
:
""
,
};
},
components
:
{
...
...
@@ -907,23 +915,23 @@ export default {
console
.
log
(
import
.
meta
.
env
);
if
(
camera
)
{
let
apiKey
=
"DLAB-customername-12345687"
;
let
apiKey
=
this
.
config
.
apiKey
;
let
env
=
import
.
meta
.
env
.
VITE_TRACKING_ENV
;
console
.
log
(
env
);
let
aiParams
=
{
env
:
env
,
apiKey
:
apiKey
,
region
:
"apac"
apiKey
:
this
.
usagetrackingkey
?
this
.
usagetrackingkey
:
apiKey
,
region
:
this
.
config
.
region
};
localStorage
.
setItem
(
"aiParams"
,
JSON
.
stringify
(
aiParams
));
let
openDev
=
this
.
$route
.
query
.
openDev
;
localStorage
.
setItem
(
"completeUrl"
,
"https://bfai-service-apac-uat.d-lab-services.danone.com/demo/#/complete"
this
.
config
.
completeUrl
);
localStorage
.
setItem
(
"incompleteUrl"
,
"https://bfai-service-apac-uat.d-lab-services.danone.com/demo/#/"
);
localStorage
.
setItem
(
"incompleteUrl"
,
this
.
config
.
incompleteUrl
);
let
url
=
"https://bfai-service-apac-uat.d-lab-services.danone.com/sdk/#/
?lying="
+
this
.
config
.
sdkUrl
+
"
?lying="
+
this
.
lying
;
if
(
openDev
)
{
url
=
url
+
"&openDev=true"
;
...
...
@@ -951,6 +959,11 @@ export default {
}
},
created
()
{
let
usagetrackingkey
=
""
;
if
(
this
.
$route
.
query
.
usagetrackingkey
!=
null
)
{
usagetrackingkey
=
this
.
$route
.
query
.
usagetrackingkey
;
}
this
.
usagetrackingkey
=
usagetrackingkey
;
let
lying
=
0
;
// 默认0 为坐姿
if
(
this
.
$route
.
query
.
lying
!=
null
)
{
lying
=
~~
this
.
$route
.
query
.
lying
;
...
...
src/views/startIndex.vue
View file @
f82345ac
...
...
@@ -140,11 +140,19 @@ export default {
},
clickGestureItem
(
val
)
{
let
lying
=
Number
(
val
.
code
);
let
usagetrackingkey
=
""
;
if
(
this
.
$route
.
query
.
usagetrackingkey
!=
null
)
{
usagetrackingkey
=
this
.
$route
.
query
.
usagetrackingkey
;
}
let
query
=
{
lying
:
lying
}
if
(
usagetrackingkey
)
{
query
.
usagetrackingkey
=
usagetrackingkey
;
}
this
.
$router
.
push
({
path
:
"/introduce"
,
query
:
{
lying
:
lying
}
query
:
query
});
}
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment