|
|
@@ -42,8 +42,6 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
-import { mapState } from 'vuex';
|
|
|
-import axios from 'axios';
|
|
|
import pageableTable from '@/mixins/pageableTable';
|
|
|
import requestWithCertificate from '@/plugins/requestWithCertificate';
|
|
|
|
|
|
@@ -52,7 +50,7 @@ export default {
|
|
|
mixins: [pageableTable],
|
|
|
data() {
|
|
|
return {
|
|
|
- baseUrl: 'localhost:8088',
|
|
|
+ baseUrl: 'https://mmo.raex.vip',
|
|
|
multipleMode: false,
|
|
|
search: '',
|
|
|
url: '/metaObjectMove/all',
|
|
|
@@ -64,17 +62,8 @@ export default {
|
|
|
return this.$refs.table.selection.map(i => i.id);
|
|
|
}
|
|
|
},
|
|
|
- created() {
|
|
|
- if (location.host === 'test.raex.vip') {
|
|
|
- this.baseUrl = 'test.mmo.raex.vip'
|
|
|
- } else if (location.host === 'raex.vip' || location.host === 'www.raex.vip') {
|
|
|
- this.baseUrl = 'mmo.raex.vip'
|
|
|
- } else {
|
|
|
- this.baseUrl = 'localhost:8088'
|
|
|
- }
|
|
|
- },
|
|
|
mounted() {
|
|
|
- requestWithCertificate().get(`https://${this.baseUrl}/mmo/websocket/check`)
|
|
|
+ requestWithCertificate().get(`${this.baseUrl}/mmo/websocket/check`)
|
|
|
.then(res => {
|
|
|
if (res.data !== 'success') {
|
|
|
this.$message.error(res.data);
|
|
|
@@ -163,7 +152,7 @@ export default {
|
|
|
return this.$http.post(`/metaObjectMove/${row.id}/run`);
|
|
|
})
|
|
|
.then(() => {
|
|
|
- requestWithCertificate().get(`https://${this.baseUrl}/mmo/websocket/${row.objectId}/start`)
|
|
|
+ requestWithCertificate().get(`${this.baseUrl}/mmo/websocket/${row.objectId}/start`)
|
|
|
.then(() => {
|
|
|
this.$message.success('运行成功,正在广播坐标信息');
|
|
|
this.getData();
|
|
|
@@ -192,7 +181,7 @@ export default {
|
|
|
return this.$http.post(`/metaObjectMove/${row.id}/cancelRun`);
|
|
|
})
|
|
|
.then(() => {
|
|
|
- requestWithCertificate().get(`https://${this.baseUrl}/mmo/websocket/${row.objectId}/stop`)
|
|
|
+ requestWithCertificate().get(`${this.baseUrl}/mmo/websocket/${row.objectId}/stop`)
|
|
|
.then(() => {
|
|
|
this.$message.success('停运成功');
|
|
|
this.getData();
|