feat(laptops): update default IP address prefix from 192.168. to 192.168.1.

This commit is contained in:
NAS-Admin 2026-06-01 09:30:30 +09:00
parent 0c3d2315ca
commit 5e46514f62

View file

@ -477,7 +477,7 @@
<label class="block text-[10px] font-black text-slate-400 uppercase mb-2 ml-1">고정 IP
주소</label>
<input type="text" x-model="formData.ip_address" placeholder="192.168.x.x"
@focus="if(!formData.ip_address) formData.ip_address = '192.168.'"
@focus="if(!formData.ip_address) formData.ip_address = '192.168.1.'"
class="w-full px-4 py-3 bg-white border border-slate-200 rounded-xl focus:ring-2 focus:ring-blue-500 outline-none transition-all text-sm font-bold text-slate-700">
</div>
<div>
@ -855,7 +855,7 @@
this.isEdit = false;
this.formData = {
id: '', asset_tag: '', model_id: '', current_user_id: '', status: 'stock',
serial_number: '', purchase_date: new Date().toISOString().split('T')[0], last_confirmed_date: '', ip_address: '192.168.',
serial_number: '', purchase_date: new Date().toISOString().split('T')[0], last_confirmed_date: '', ip_address: '192.168.1.',
cpu: '', npu: '', ram: '', hdd0_model: '', hdd0_capacity: '', hdd1_model: '', hdd1_capacity: '',
asset_status: '', assigned_user_name: '', fixed_ip: '', options: '', power_rating: '',
manufacturer: '', vendor: '', product_name: '', remarks: '',
@ -870,7 +870,7 @@
editAsset(asset) {
this.isEdit = true;
this.formData = { ...asset };
if (!this.formData.ip_address) this.formData.ip_address = '192.168.';
if (!this.formData.ip_address) this.formData.ip_address = '192.168.1.';
if (asset.current_user_id) {
const user = this.allUsers.find(u => u.id == asset.current_user_id);
this.userSearchQuery = user ? `${user.name} (${user.emp_id})` : asset.user_name;