陈冉 6 лет назад
Родитель
Сommit
3008fd8113
3 измененных файлов: 8 добавлений и 5 удалений
  1. 2
    2
      src/views/vote/detail.vue
  2. 5
    2
      src/views/vote/list.vue
  3. 1
    1
      vue.config.js

+ 2
- 2
src/views/vote/detail.vue Просмотреть файл

@@ -164,8 +164,8 @@ export default {
164 164
 }
165 165
 
166 166
 img {
167
-  width: 100%;
168
-  height: 3.6rem;
167
+  max-width: 100%;
168
+  max-height: 3.6rem;
169 169
   margin: 0.1rem 0;
170 170
 }
171 171
 .detailinformation {

+ 5
- 2
src/views/vote/list.vue Просмотреть файл

@@ -677,10 +677,13 @@ export default {
677 677
           border-radius: 0.15rem;
678 678
           margin-bottom: 0.11rem;
679 679
           border: 0.04rem solid rgba(166, 184, 201, 1);
680
+          display: flex;
681
+          align-items: center;
682
+          justify-content: center;
680 683
 
681 684
           img {
682
-            width: 100%;
683
-            height: 100%;
685
+            max-width: 100%;
686
+            max-height: 100%;
684 687
             border-radius: 0.1rem;
685 688
           }
686 689
         }

+ 1
- 1
vue.config.js Просмотреть файл

@@ -5,7 +5,7 @@ module.exports = {
5 5
   chainWebpack: config => config.plugins.delete('named-chunks'),
6 6
   devServer: {
7 7
     proxy: {
8
-      '/voteapi': {
8
+      '/api': {
9 9
         // target: 'http://wechatconfigdev.ycjcjy.com',
10 10
         // target: 'http://192.168.0.62:8080', // wf
11 11
         // target: 'http://192.168.0.102:8080', // hyq