This commit is contained in:
chenjinsong
2021-06-11 10:00:22 +08:00
parent 13329e8f85
commit bc54fc58fd
31 changed files with 2819 additions and 92 deletions

View File

@@ -4,7 +4,15 @@
</div>
</template>
<script>
import { get } from '@/utils/http'
import axios from 'axios'
export default {
name: 'App'
name: 'App',
setup () {
get(`${process.env.BASE_URL}config.json?Timestamp=${new Date().getTime()}`).then(config => {
axios.defaults.baseURL = config.baseUrl
})
}
}
</script>