File tree Expand file tree Collapse file tree 6 files changed +8
-21
lines changed
Expand file tree Collapse file tree 6 files changed +8
-21
lines changed Original file line number Diff line number Diff line change @@ -105,10 +105,10 @@ export default {
105105 let flag = favorites .indexOf (path).value ();
106106 if (flag === - 1 ) {
107107 favorites .push (path).value ();
108- this .$toasted . show (' 收藏成功' );
108+ this .$noty . success (' 收藏成功' );
109109 } else {
110110 favorites .pull (path).value ();
111- this .$toasted . show (' 取消收藏成功' );
111+ this .$noty . success (' 取消收藏成功' );
112112 }
113113 this .$store .commit (' SET_STORE' , {
114114 key: ' setting.favorites' ,
Original file line number Diff line number Diff line change @@ -21,10 +21,10 @@ export default {
2121 doCopy () {
2222 this .$copyText (this .copy ).then (
2323 () => {
24- this .$toasted . show (' 复制成功' );
24+ this .$noty . success (' 复制成功' );
2525 },
2626 () => {
27- this .$toasted . show (' 复制失败,请手动选择复制' );
27+ this .$noty . error (' 复制失败,请手动选择复制' );
2828 }
2929 );
3030 }
Original file line number Diff line number Diff line change @@ -254,10 +254,10 @@ export default {
254254 doCopy (text ) {
255255 this .$copyText (text).then (
256256 () => {
257- this .$toasted . show (' 复制成功' );
257+ this .$noty . success (' 复制成功' );
258258 },
259259 () => {
260- this .$toasted . show (' 复制失败,请手动选择复制' );
260+ this .$noty . error (' 复制失败,请手动选择复制' );
261261 }
262262 );
263263 }
Original file line number Diff line number Diff line change @@ -79,10 +79,10 @@ export default {
7979 doCopy (color , text ) {
8080 this .$copyText (color).then (
8181 () => {
82- this .$toasted . show (text);
82+ this .$noty . success (text);
8383 },
8484 () => {
85- this .$toasted . show (' 复制失败,请手动选择复制' );
85+ this .$noty . error (' 复制失败,请手动选择复制' );
8686 }
8787 );
8888 },
Original file line number Diff line number Diff line change @@ -134,7 +134,6 @@ export default {
134134 ' https://github.com/necolas/normalize.css/' ,
135135 ' https://www.npmjs.com/package/tinycolor2' ,
136136 ' https://github.com/hilongjw/vue-lazyload' ,
137- ' https://github.com/shakee93/vue-toasted' ,
138137 ' https://github.com/robinvdvleuten/vuex-persistedstate' ,
139138 ' https://github.com/m13253/JPEGreen'
140139 ]
Original file line number Diff line number Diff line change @@ -148,18 +148,6 @@ hr {
148148 border-bottom : 1px dashed var (--border-color );
149149}
150150
151- // toasted
152- .toasted-container {
153- top : 6% !important ;
154- .miku-toasted {
155- justify-content : center !important ;
156- @media (max-width : 700px ) {
157- padding : 5px 20px !important ;
158- line-height : 1.3 !important ;
159- }
160- }
161- }
162-
163151// 滚动条
164152::-webkit-scrollbar {
165153 width : 8px ;
You can’t perform that action at this time.
0 commit comments