Add http/https support to socketio url valid

This commit is contained in:
moonrailgun
2020-03-05 11:15:07 +08:00
parent 08e578b4b4
commit 94b2688073
2 changed files with 27 additions and 14 deletions

View File

@@ -74,7 +74,7 @@
</template>
<script>
import { wsValid } from "~/functions/utils/valid"
import { socketioValid } from "~/functions/utils/valid"
import io from "socket.io-client"
import realtimeLog from "./log"
@@ -97,7 +97,7 @@ export default {
},
computed: {
urlValid() {
return wsValid(this.url)
return socketioValid(this.url)
},
},
methods: {