Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web-project
Project
Project
Details
Activity
Releases
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
海康威视
web-project
Commits
93d34f44
Commit
93d34f44
authored
Sep 13, 2024
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了语音指令和语音指令部署位置的token
parent
d195c095
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
5 deletions
+37
-5
VoiceCommandLocationPage.vue
src/views/AIStation/VoiceCommandLocationPage.vue
+20
-2
VoiceCommandPage.vue
src/views/AIStation/VoiceCommandPage.vue
+17
-3
No files found.
src/views/AIStation/VoiceCommandLocationPage.vue
View file @
93d34f44
<
script
setup
>
import
{
reactive
,
ref
}
from
"vue"
;
import
{
reactive
,
ref
,
watch
}
from
"vue"
;
import
zhCn
from
"element-plus/dist/locale/zh-cn.mjs"
import
axios
from
"axios"
;
import
store
from
"../../store"
;
import
{
getVoiceCommandsLocationData
,
deleteVoiceCommandsLocation
,
addVoiceCommandsLocation
,
updateVoiceCommandsLocation
,
getVoiceCommandsLocationDetail
}
from
"../../api/AIStation/VoiceCommandLocation"
;
import
{
ElMessage
,
ElMessageBox
}
from
'element-plus'
;
import
{
handleGetAIToken
}
from
"./AItoken"
;
import
{
useRoute
}
from
"vue-router"
;
// 查询条件
const
queryParams
=
ref
({
stationId
:
''
,
//换热站id
...
...
@@ -56,7 +59,7 @@ let dialogFormVisible = ref(false)
const
formTitle
=
ref
(
''
)
//加载列表数据
loadData
()
//
loadData()
function
loadData
(){
console
.
log
(
'调用了LoadData'
)
const
item
=
{
...
...
@@ -310,6 +313,21 @@ function getSupplys(){
});
}
}
const
route
=
useRoute
()
watch
(
()
=>
route
.
path
,
// 只监听路径变化
()
=>
{
if
(
route
.
path
===
'/AIStation/VoiceCommandLocation'
)
{
// 路由变化,执行相应操作
handleGetAIToken
();
loadData
()
console
.
log
(
'route.path'
,
route
.
path
)
}
},
{
immediate
:
true
}
// 只在路径变化时触发
)
getSupplys
()
</
script
>
...
...
src/views/AIStation/VoiceCommandPage.vue
View file @
93d34f44
<
script
setup
>
import
{
reactive
,
ref
}
from
"vue"
;
import
{
reactive
,
ref
,
watch
}
from
"vue"
;
import
zhCn
from
"element-plus/dist/locale/zh-cn.mjs"
import
store
from
"../../store/index.js"
;
import
{
getVoiceCommandsData
,
deleteVoiceCommands
,
addVoiceCommands
,
updateVoiceCommands
,
exportVoiceCommands
}
from
"../../api/AIStation/VoiceCommand"
;
import
{
useRoute
}
from
"vue-router"
;
import
{
handleGetAIToken
}
from
"./AItoken"
;
...
...
@@ -64,7 +66,7 @@ function loadData(){
Page
.
total
=
res
.
total
})
}
loadData
()
//
loadData()
const
handleExport
=
()
=>
{
const
item
=
{
...
...
@@ -175,7 +177,19 @@ function handleDetail(row) {
singleDetails
=
row
detailOpen
.
value
=
true
}
const
route
=
useRoute
()
watch
(
()
=>
route
.
path
,
// 只监听路径变化
()
=>
{
if
(
route
.
path
===
'/AIStation/VoiceCommand'
)
{
// 路由变化,执行相应操作
handleGetAIToken
();
loadData
()
console
.
log
(
'route.path'
,
route
.
path
)
}
},
{
immediate
:
true
}
// 只在路径变化时触发
)
</
script
>
<
template
>
...
...
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