Kaynağa Gözat

修复按钮的颜色bug

JXDS18FUJT 2 yıl önce
ebeveyn
işleme
6963e88c88

+ 0 - 4
src/App.css

@@ -1,4 +0,0 @@
-/* app.css */
-@tailwind base;
-@tailwind components;
-@tailwind utilities;

+ 1 - 3
src/App.vue

@@ -38,9 +38,7 @@
   text-align: center;
   color: #2c3e50;
 }
-button, [type='button'], [type='reset'], [type='submit']{
-  background-color: #1677ff;
-}
+
 nav {
   padding: 30px;
 

+ 4 - 0
src/api/request.ts

@@ -32,6 +32,10 @@ request.interceptors.response.use((res) => {
 				okText:"确定",
 				onOk:()=>{
 					router.push('/login')
+				},
+				okButtonProps:{
+					type:'primary',
+					htmlType:undefined
 				}
 			})
 			break;

+ 1 - 1
src/main.ts

@@ -2,5 +2,5 @@ import { createApp } from 'vue'
 import App from './App.vue'
 import router from './router'
 import store from './store'
-import "tailwindcss/tailwind.css"
+import './tailwindcss.css'
 createApp(App).use(store).use(router).mount('#app')

+ 3 - 0
src/tailwindcss.css

@@ -0,0 +1,3 @@
+@import "tailwindcss/base";
+@import "tailwindcss/components";
+@import "tailwindcss/utilities";

+ 1 - 1
src/views/driverExamAnaly/index.vue

@@ -8,7 +8,7 @@
         <div
           @click="
             () => {
-              $router.back();
+              $router.go(-2);
             }
           "
           class="flex w72 h40 right0 round4 items-center justify-center absolute bottom16 bg-primary-yellow cursor-pointer"

+ 1 - 1
src/views/home/components/leftTab/index.vue

@@ -12,7 +12,7 @@
             :key="index"
             class="left-item"
           >
-            <div class="w-full h-full pl25 relative">
+            <div class="h-full pl25 relative">
               <img class="" :src="item.icon" />
               <div @click="selectParent(item, index)" class="title">
                 {{ item.text }}

+ 11 - 1
src/views/home/practiseSelect/index.vue

@@ -33,7 +33,7 @@
                 "
               >
                 <div
-                  class="w64 lh34 mr15 round4 overflow-hidden select-border2"
+                  class="w64 lh34 mr15 round4 overflow-hidden select-border2 "
                 >
                   练习
                 </div>
@@ -179,11 +179,18 @@ export default defineComponent({
 </script>
 
 <style lang="scss" scoped>
+a{
+  color: black;
+  text-decoration: none;
+
+}
 .select-border1 {
   border: 1px solid #f9de5b;
 }
 .select-border2 {
   border: 1px solid #f9de5b;
+  color: black;
+  text-decoration: none;
 }
 .select-border3 {
   border: 1px solid #d8d8d8;
@@ -197,7 +204,10 @@ export default defineComponent({
   border: 1px solid #f9de5b;
   background-color: rgba(255, 247, 204, 1);
   cursor: pointer;
+  
 }
+
+
 .radius4 {
   border-radius: 4px;
 }

+ 1 - 1
src/views/login/index.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="w-full vh100">
-    <div class="w-full flex-wrap">
+    <div class="w-full flex-wrap flex items-start">
       <img class="w-full" src="@/assets/img/login/top_bg.png" />
       <div
         class="w-full bg-primary-yellow h46 lh46 pl30 flex-wrap flex cursor-pointer"

+ 1 - 1
src/views/threeExamAnaly/index.vue

@@ -8,7 +8,7 @@
         <div
           @click="
             () => {
-              $router.back();
+              $router.go(-2);
             }
           "
           class="flex w72 h40 right0 round4 items-center justify-center absolute bottom16 bg-primary-yellow cursor-pointer"

+ 4 - 0
tailwind.config.js

@@ -12,4 +12,8 @@ module.exports = {
       extend: {},
     },
     plugins: [],
+    corePlugins:{
+      preflight: false,
+      base:false
+    }
   }