Commit ab6e9a20 authored by 程卓's avatar 程卓

test

parent c24f7c1a
<template> <template>
<div class="content"> <div class="content">
{{$api.BASE_URL}} {{$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 /> <home v-else />
</div> </div>
...@@ -10,11 +14,20 @@ ...@@ -10,11 +14,20 @@
<script> <script>
import xuhui from '@/views/homeXuhui' import xuhui from '@/views/homeXuhui'
import home from '@/views/home' import home from '@/views/home'
export default { export default {
components: { components: {
xuhui, xuhui,
home home
},
data () {
return {
url: window.location.origin
}
},
mounted() {
console.log(window.location.origin)
console.log(this.$api.BASE_URL)
} }
} }
......
<template> <template>
<div> <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 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="topBox-l">
<div class="inner" style=""> <div class="inner" style="">
...@@ -659,6 +659,8 @@ export default { ...@@ -659,6 +659,8 @@ export default {
}, },
data() { data() {
return{ return{
url: window.location.origin,
ok, ok,
nm, nm,
date: new Date(), 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