Browse Source

put转post

liangxvying 2 weeks ago
parent
commit
504ba3993f

+ 1 - 1
online/index.html

@@ -1 +1 @@
-<!doctype html><html lang="zh-cmn-Hans"><head><meta charset="utf-8"/><meta content="IE=edge" http-equiv="X-UA-Compatible"/><meta content="webkit" name="renderer"/><meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport"/><link href="favicon.ico" rel="icon"/><title>仲景书院第二课堂综合平台</title><meta content="仲景书院第二课堂综合平台" name="keywords"/><meta content="vue-admin-better" name="author"/><link href="static/css/loading.css?random=2025-01-13 11:19:13-zh-mead" rel="stylesheet"/><script defer="defer" src="static/js/app.08f2f17c.js"></script><script defer="defer" src="static/js/834.175c1b7c.js"></script><link href="static/css/app.30bbad49.css" rel="stylesheet"><link href="static/css/834.9b24b451.css" rel="stylesheet"><!--[if IE]><link rel="icon" type="image/svg+xml" href="img/icons/favicon.svg"><![endif]--><link rel="icon" type="image/png" sizes="32x32" href="favicon.ico"><link rel="icon" type="image/png" sizes="16x16" href="favicon.ico"><link rel="manifest" href="manifest.json"><meta name="theme-color" content="#ffffff"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="black"><meta name="apple-mobile-web-app-title" content="admin-plus"><link rel="apple-touch-icon" href="favicon.ico"><link rel="mask-icon" href="favicon.ico" color="#ffffff"><meta name="msapplication-TileImage" content="favicon.ico"><meta name="msapplication-TileColor" content="#ffffff"></head><body><noscript></noscript><div id="app"><div class="first-loading-wrp"><div class="loading-wrp"><span class="dot dot-spin"><i></i> <i></i> <i></i> <i></i></span></div><h1>仲景书院第二课堂综合平台</h1></div></div></body></html>
+<!doctype html><html lang="zh-cmn-Hans"><head><meta charset="utf-8"/><meta content="IE=edge" http-equiv="X-UA-Compatible"/><meta content="webkit" name="renderer"/><meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport"/><link href="favicon.ico" rel="icon"/><title>仲景书院第二课堂综合平台</title><meta content="仲景书院第二课堂综合平台" name="keywords"/><meta content="vue-admin-better" name="author"/><link href="static/css/loading.css?random=2025-01-13 14:51:57-zh-mead" rel="stylesheet"/><script defer="defer" src="static/js/app.f779bad9.js"></script><script defer="defer" src="static/js/834.35caafdd.js"></script><link href="static/css/app.30bbad49.css" rel="stylesheet"><link href="static/css/834.9b24b451.css" rel="stylesheet"><!--[if IE]><link rel="icon" type="image/svg+xml" href="img/icons/favicon.svg"><![endif]--><link rel="icon" type="image/png" sizes="32x32" href="favicon.ico"><link rel="icon" type="image/png" sizes="16x16" href="favicon.ico"><link rel="manifest" href="manifest.json"><meta name="theme-color" content="#ffffff"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="black"><meta name="apple-mobile-web-app-title" content="admin-plus"><link rel="apple-touch-icon" href="favicon.ico"><link rel="mask-icon" href="favicon.ico" color="#ffffff"><meta name="msapplication-TileImage" content="favicon.ico"><meta name="msapplication-TileColor" content="#ffffff"></head><body><noscript></noscript><div id="app"><div class="first-loading-wrp"><div class="loading-wrp"><span class="dot dot-spin"><i></i> <i></i> <i></i> <i></i></span></div><h1>仲景书院第二课堂综合平台</h1></div></div></body></html>

File diff suppressed because it is too large
+ 0 - 0
online/service-worker.js


File diff suppressed because it is too large
+ 1 - 1
online/static/css/177.1f53f687.css


File diff suppressed because it is too large
+ 1 - 1
online/static/css/834.9b24b451.css


File diff suppressed because it is too large
+ 1 - 1
online/static/css/app.30bbad49.css


File diff suppressed because it is too large
+ 1 - 1
online/static/css/vab-chunk-55f36e6d.3d832670.css


File diff suppressed because it is too large
+ 1 - 1
online/static/js/177.ecb9933d.js


+ 1 - 1
online/static/js/35.863535d1.js

@@ -1,7 +1,7 @@
 /*!
  *  build: Vue  Admin Plus
  *  copyright: vue-admin-beautiful.com
- *  time: 2025-01-13 11:19:13
+ *  time: 2025-01-13 14:51:57
  */
 (self["webpackChunkadmin_plus"]=self["webpackChunkadmin_plus"]||[]).push([[35],{13491:function(e,t,i){"use strict";var s=i(75310),n=function(e,t){return void 0===t&&(t=!1),function(i,n,a){if(i)e(i);else if(n.statusCode>=400&&n.statusCode<=599){var o=a;if(t)if(s.TextDecoder){var l=r(n.headers&&n.headers["content-type"]);try{o=new TextDecoder(l).decode(a)}catch(u){}}else o=String.fromCharCode.apply(null,new Uint8Array(a));e({cause:o})}else e(null,a)}};function r(e){return void 0===e&&(e=""),e.toLowerCase().split(";").reduce((function(e,t){var i=t.split("="),s=i[0],n=i[1];return"charset"===s.trim()?n.trim():e}),"utf-8")}e.exports=n},99748:function(e,t,i){"use strict";var s=i(75310),n=i(33996),r=i(82275),a=i(40584),o=i(52408);c.httpHandler=i(13491),c.requestInterceptorsStorage=new a,c.responseInterceptorsStorage=new a,c.retryManager=new o;
 /**

File diff suppressed because it is too large
+ 1 - 1
online/static/js/834.35caafdd.js


File diff suppressed because it is too large
+ 0 - 4
online/static/js/app.08f2f17c.js


File diff suppressed because it is too large
+ 4 - 0
online/static/js/app.f779bad9.js


File diff suppressed because it is too large
+ 1 - 1
online/static/js/vab-chunk-1ce32aae.b8513f3f.js


File diff suppressed because it is too large
+ 1 - 1
online/static/js/vab-chunk-27118de1.394c98ec.js


File diff suppressed because it is too large
+ 1 - 1
online/static/js/vab-chunk-2e7a54de.d4f9732c.js


File diff suppressed because it is too large
+ 1 - 1
online/static/js/vab-chunk-55f36e6d.c3749187.js


File diff suppressed because it is too large
+ 1 - 1
online/static/js/vab-chunk-81b65d13.eaa8a4a1.js


File diff suppressed because it is too large
+ 1 - 1
online/static/js/vab-chunk-adaa8b5b.b642317b.js


File diff suppressed because it is too large
+ 1 - 1
online/static/js/vab-chunk-bffabe46.22a040ac.js


File diff suppressed because it is too large
+ 1 - 1
online/static/js/vab-chunk-c117d123.f9441151.js


File diff suppressed because it is too large
+ 1 - 1
online/static/js/vab-chunk-c2cf684f.dc68328f.js


File diff suppressed because it is too large
+ 1 - 1
online/static/js/vab-chunk-c6f52c3a.9088165a.js


File diff suppressed because it is too large
+ 1 - 1
online/static/js/vab-chunk-e6508ca2.2e8cfedc.js


File diff suppressed because it is too large
+ 1 - 1
online/static/js/vab-chunk-fb9e1e3f.d0d56514.js


+ 8 - 0
src/utils/request.ts

@@ -58,6 +58,14 @@ const requestConf: any = (config: any) => {
   // delete config.headers
   // 规范写法 不可随意自定义
   if (token) config.headers['Authorization'] = `Bearer ${token}`
+  if (config.method.toUpperCase() == 'PUT') {
+    config.method = 'POST'
+    config.headers['X-HTTP-Method-Override'] = 'PUT'
+  }
+  if (config.method.toUpperCase() == 'DELETE') {
+    config.method = 'POST'
+    config.headers['X-HTTP-Method-Override'] = 'DELETE'
+  }
   if (
     config.data &&
     config.headers['Content-Type'] ===

Some files were not shown because too many files changed in this diff