|
@@ -13,7 +13,7 @@
|
|
|
<image :src="eye?Frame:browse" class='login_icon_eye' alt="" @click="showpsd">
|
|
|
</u-form-item>
|
|
|
<u-form-item prop="userInfo.name" class="label_left">
|
|
|
- <image :src="user_img" class='login_icon' alt="">
|
|
|
+ <image :src="ip_img" class='login_icon' alt="">
|
|
|
<u--input v-model="addressIp"></u--input>
|
|
|
</u-form-item>
|
|
|
</u--form>
|
|
@@ -28,6 +28,7 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
import login from "@/static/login_img/login.png"
|
|
|
+ import ip_img from "@/static/login_img/ip.png"
|
|
|
import Frame from "@/static/login_img/Frame.png"
|
|
|
import lockon from "@/static/login_img/lock-on.png"
|
|
|
import user from "@/static/login_img/user.png"
|
|
@@ -38,6 +39,7 @@
|
|
|
data() {
|
|
|
return {
|
|
|
login_img: login,
|
|
|
+ ip_img:ip_img,
|
|
|
browse: browse,
|
|
|
user_img: user,
|
|
|
lockon: lockon,
|
|
@@ -49,7 +51,7 @@
|
|
|
eye: true,
|
|
|
popupType:'',
|
|
|
popupMessage:'',
|
|
|
- addressIp:this.$storage.getJson('addressIp')?this.$storage.getJson('addressIp'):'192.168.3.177:8080'
|
|
|
+ addressIp:this.$storage.getJson('addressIp')?this.$storage.getJson('addressIp'):'192.168.3.177'
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
@@ -64,8 +66,8 @@
|
|
|
},
|
|
|
submit() {
|
|
|
|
|
|
- config.uni_app_web_api_url='http://'+this.addressIp+'/api'
|
|
|
- config.web_socket_url='ws://'+this.addressIp+'/ws/'
|
|
|
+ config.uni_app_web_api_url='http://'+this.addressIp+':8080/api'
|
|
|
+ config.web_socket_url='ws://'+this.addressIp+':8080/ws/'
|
|
|
if(!this.addressIp){
|
|
|
this.ExchangeMessage('error', '请输入IP地址')
|
|
|
return
|