现场修改了一些
parent
3df47fc2a7
commit
226b7fa261
|
@ -72,8 +72,8 @@ export default {
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
if (localGet('token')) {
|
if (localGet('token')) {
|
||||||
state.client = mqtt.connect('ws://www.shikicc.com:52190/mqtt', {
|
state.client = mqtt.connect('ws://192.168.2.6:8083/mqtt', {
|
||||||
port: 52190,
|
port: 8083,
|
||||||
clientId: new Date(),
|
clientId: new Date(),
|
||||||
username: 'hsgy',
|
username: 'hsgy',
|
||||||
password: "hsgy123",
|
password: "hsgy123",
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="index">
|
<div class="index">
|
||||||
<div class="index-left">
|
<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>
|
</iframe>
|
||||||
</div>
|
</div>
|
||||||
<div class="index-right">
|
<div class="index-right">
|
||||||
|
|
|
@ -24,9 +24,11 @@ export default ({ mode }) => defineConfig({
|
||||||
server: {
|
server: {
|
||||||
proxy: {
|
proxy: {
|
||||||
'/api': {
|
'/api': {
|
||||||
target: 'http://whh.shikicc.com:52189',
|
// target: 'http://whh.shikicc.com:52189',
|
||||||
|
target: '192.168.2.6:6688',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
rewrite: path => path.replace(/^\/api/, '')
|
// rewrite: path => path.replace(/^\/api/, '')
|
||||||
|
rewrite: path => path.replace(/^\//, '')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue