Commit ab6e9a20 authored by 程卓's avatar 程卓

test

parent c24f7c1a
<template>
<div class="content">
{{$api.BASE_URL}}
<xuhui v-if="($api.BASE_URL).indexOf('xuhui') > -1 || ($api.BASE_URL).indexOf('31.0.161.39') > -1||($api.BASE_URL).indexOf('pudong') > -1 || ($api.BASE_URL).indexOf('211.136.105.193') > -1" />
{{url}}
<xuhui v-if="(url).indexOf('xuhui') > -1 || (url).indexOf('31.0.161.39') > -1||(url).indexOf('pudong') > -1 || (url).indexOf('211.136.105.193') > -1" />
<!-- <xuhui v-if="($api.BASE_URL).indexOf('xuhui') > -1 ||
($api.BASE_URL).indexOf('31.0.161.39') > -1||($api.BASE_URL).indexOf('pudong') > -1 || ($api.BASE_URL).indexOf('211.136.105.193') > -1" /> -->
<home v-else />
</div>
......@@ -10,11 +14,20 @@
<script>
import xuhui from '@/views/homeXuhui'
import home from '@/views/home'
export default {
components: {
xuhui,
home
},
data () {
return {
url: window.location.origin
}
},
mounted() {
console.log(window.location.origin)
console.log(this.$api.BASE_URL)
}
}
......
<template>
<div>
{{$api.BASE_URL}}
<!-- 浦东 -->
{{$api.BASE_URL}}
{{url}}
<div id="home" class="layoutPadding" v-if="(this.$api.BASE_URL).indexOf('pudong') > -1 || (this.$api.BASE_URL).indexOf('211.136.105.193') > -1">
<div class="topBox-l">
<div class="inner" style="">
......@@ -659,6 +659,8 @@ export default {
},
data() {
return{
url: window.location.origin,
ok,
nm,
date: new Date(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment