fix: login page brand color does not take effect (#4655)
							parent
							
								
									7c45aeb868
								
							
						
					
					
						commit
						f7fa69d33b
					
				| 
						 | 
					@ -13,10 +13,11 @@ defineOptions({
 | 
				
			||||||
  name: 'AuthenticationColorToggle',
 | 
					  name: 'AuthenticationColorToggle',
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function handleUpdate(value: BuiltinThemeType) {
 | 
					function handleUpdate(colorPrimary: string, type: BuiltinThemeType) {
 | 
				
			||||||
  updatePreferences({
 | 
					  updatePreferences({
 | 
				
			||||||
    theme: {
 | 
					    theme: {
 | 
				
			||||||
      builtinType: value,
 | 
					      colorPrimary,
 | 
				
			||||||
 | 
					      builtinType: type,
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -30,7 +31,7 @@ function handleUpdate(value: BuiltinThemeType) {
 | 
				
			||||||
      <template v-for="preset in COLOR_PRESETS" :key="preset.color">
 | 
					      <template v-for="preset in COLOR_PRESETS" :key="preset.color">
 | 
				
			||||||
        <VbenIconButton
 | 
					        <VbenIconButton
 | 
				
			||||||
          class="flex-center flex-shrink-0"
 | 
					          class="flex-center flex-shrink-0"
 | 
				
			||||||
          @click="handleUpdate(preset.type)"
 | 
					          @click="handleUpdate(preset.color, preset.type)"
 | 
				
			||||||
        >
 | 
					        >
 | 
				
			||||||
          <div
 | 
					          <div
 | 
				
			||||||
            :style="{ backgroundColor: preset.color }"
 | 
					            :style="{ backgroundColor: preset.color }"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue