for example
vlan 1 ip address 192.168.1.1/24
vlan 2 ip address 192.168.2.1/24
vlan 3 ip address 192.168.3.1/24
vlan 4 ip address 192.168.4.1/24
you write default route to internet router on switch
0.0.0.0 0.0.0.0 192.168.1.2(interent router connect vlan 1 and ip address 1.2)
after you can write only one static route on internet router to switch
192.168.0.0 255.255.0.0 192.168.1.1
;)