现场修改了一些

main
gitcc 2023-12-13 12:04:28 +08:00
parent 3df47fc2a7
commit 226b7fa261
3 changed files with 7 additions and 5 deletions

View File

@ -72,8 +72,8 @@ export default {
onMounted(() => {
if (localGet('token')) {
state.client = mqtt.connect('ws://www.shikicc.com:52190/mqtt', {
port: 52190,
state.client = mqtt.connect('ws://192.168.2.6:8083/mqtt', {
port: 8083,
clientId: new Date(),
username: 'hsgy',
password: "hsgy123",

View File

@ -1,7 +1,7 @@
<template>
<div class="index">
<div class="index-left">
<iframe src="https://zutai1.shikicc.com/view?name=mn" height="100%" width="100%">
<iframe src="http://192.168.2.6:82/view?name=hsgy" height="100%" width="100%">
</iframe>
</div>
<div class="index-right">

View File

@ -24,9 +24,11 @@ export default ({ mode }) => defineConfig({
server: {
proxy: {
'/api': {
target: 'http://whh.shikicc.com:52189',
// target: 'http://whh.shikicc.com:52189',
target: '192.168.2.6:6688',
changeOrigin: true,
rewrite: path => path.replace(/^\/api/, '')
// rewrite: path => path.replace(/^\/api/, '')
rewrite: path => path.replace(/^\//, '')
}
}
}