File tree Expand file tree Collapse file tree 3 files changed +92
-85
lines changed
Expand file tree Collapse file tree 3 files changed +92
-85
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ function Actions() {
5757 return ;
5858 }
5959 console . log ( "-> set default domain:" , configServer . domain [ 0 ] ) ;
60- config . update ( config . mail , configServer . domain [ 0 ] ) ;
60+ config . update ( config . mail , configServer . domain [ 0 ] , ( cfg ) => false ) ;
6161 } , [ configServer . domain ] ) ;
6262
6363 function onSave ( ) {
@@ -66,7 +66,13 @@ function Actions() {
6666 }
6767 setEdited ( false ) ;
6868 if ( config . mail != mail || config . domain != domain ) {
69- config . update ( mail , domain ) ;
69+ config . update ( mail , domain , ( cfg ) => {
70+ const index = cfg . history . indexOf ( mail + domain ) ;
71+ if ( index >= 0 ) {
72+ cfg . clearHistory ( index ) ;
73+ }
74+ return true ;
75+ } ) ;
7076 toast . success ( "已修改至新地址 " + mail + domain ) ;
7177 setTimeout ( ( ) => emitter . emit ( mittKey . REFRESH ) ) ;
7278 }
Original file line number Diff line number Diff line change 99 "lint" : " next lint"
1010 },
1111 "dependencies" : {
12- "@aws-sdk/client-s3" : " ^3.600 .0" ,
12+ "@aws-sdk/client-s3" : " ^3.606 .0" ,
1313 "@radix-ui/react-dialog" : " ^1.1.1" ,
1414 "@radix-ui/react-dropdown-menu" : " ^2.1.1" ,
1515 "@radix-ui/react-popover" : " ^1.1.1" ,
3636 "eslint" : " ^8.57.0" ,
3737 "eslint-config-next" : " ^14.2.4" ,
3838 "eslint-config-prettier" : " ^9.1.0" ,
39- "postcss" : " ^8.4.38 " ,
39+ "postcss" : " ^8.4.39 " ,
4040 "prettier" : " ^3.3.2" ,
4141 "prettier-plugin-tailwindcss" : " ^0.6.5" ,
4242 "tailwindcss" : " ^3.4.4" ,
You can’t perform that action at this time.
0 commit comments