feat: polish admin UI, phone login, and product details
Switch admin auth to mobile, restyle shell/login with Vuesax icons, and add product detail fields plus public product pages. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -32,6 +32,11 @@ export const useContactStore = defineStore("contact", {
|
||||
this.status = "error";
|
||||
}
|
||||
},
|
||||
/** Pre-fills the message, e.g. from a product page's "request a quote" button */
|
||||
prefill(message: string) {
|
||||
if (this.status === "success") this.reset();
|
||||
this.form.message = message;
|
||||
},
|
||||
reset() {
|
||||
this.form = emptyForm();
|
||||
this.status = "idle";
|
||||
|
||||
Reference in New Issue
Block a user