소스 검색

样式修改

zhangguohua 1 년 전
부모
커밋
6895b0410b
3개의 변경된 파일78개의 추가작업 그리고 893개의 파일을 삭제
  1. 74 889
      src/styles/common.scss
  2. 1 1
      src/utils/request.ts
  3. 3 3
      vite.config.ts

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 74 - 889
src/styles/common.scss


+ 1 - 1
src/utils/request.ts

@@ -42,7 +42,7 @@ service.interceptors.response.use(
       // 特殊状态码处理,如 token 失效等
       if (res.code === 401) {
         // 跳转登录页
-        window.location.href = '/login'
+        window.location.href = '/'
       }
 
       return Promise.reject(res.msg || '请求失败')

+ 3 - 3
vite.config.ts

@@ -11,8 +11,8 @@ export default defineConfig({
     extensions: ['.ts', '.js', '.vue', '.json'] // 添加这一行
   },
   server: {
-    host:'',//允许所有ip访问
-    port:5731,//默认端口
+    host: '0.0.0.0',//允许所有ip访问
+    port: 5731,//默认端口
     proxy:{
       // '/api':{
       //   // target:'https://dev.k12100.net/admin/adminApi',
@@ -21,7 +21,7 @@ export default defineConfig({
       //   rewrite:path => path.replace(/^\/api/, '')
       // },
       '/adminApi':{
-        target:'https://admin.k12100.com/admin/adminApi',
+        target:'https://admin.k12100.net/admin/adminApi',
         // target:'http://192.168.1.61:47002/adminApi',
         changeOrigin:true,
         rewrite:path => path.replace(/^\/adminApi/, '')

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.