puzhibing
6 天以前 0db8c9b94a9ac655549d5eba5c2a6c92ac386c06
laboratory/src/utils/request.js
@@ -14,9 +14,6 @@
  config => {
    config['headers']['Authorization'] = `${sessionStorage.getItem('token')}`
    // 🔥 关键修改:设置请求头的字符集为UTF-8
    config['headers']['Content-Type'] = 'application/json;charset=UTF-8'
    // 判断是否需要加密(只对/api开头的请求进行加密)
    const needEncrypt = config.url.startsWith('/api');