<!-- <script>
  var request = window.axios.create({
    baseURL: import.meta.env.PUBLIC_SERVER,
    timeout: 10000,
  })
  window.request = request

  request.interceptors.request.use((config) => {
    // 暂无需要处理的内容
    return config
  })

  request.interceptors.response.use((response) => {
    const { data, status } = response

    if (data?.code === 1000 || data?.code === 200) {
      return data.data
    }

    if (data?.message || data?.msg) {
      throw new Error(data?.message || data?.msg)
    }

    throw new Error(`网络异常 - ${status}`)
  })
</script> -->
