A Swiss type solution would indeed seem to be a possible approach, especially if coupled with large scale conscription and training. Without it, the idea is rather pointless.
In 1981, all conscripts began serving two years. Ten years later, the conscription period was reduced to twenty-two months, and alternative military service became an option. Between 2004 and 2007, two months were cut from mandatory military service each year, until a total of one year remained in 2008. Service time for men born after 1994 was cut to four months in 2013. The last group of mandatory conscripts were discharged in December 2018.
But implementing a Swiss defense force looks a lot more like the original 2nd Amendment's intent (my bolding) than the current mess the US engages in with regards to granting civilians near-unrestricted access to guns of dubious military efficacy, but great criminal potential:
A well regulated Militia, being necessary to the security of a free State, the right of the people to keep and bear Arms, shall not be infringed.
At another level, this may not work out as well as planned. It's hard to see the CCP/PLA taking such a home defense force seriously and being dissuaded from invasion beforehand. On the other hand, it is not hard, I think the Uyghurs would agree, to see the CCP/PLA overreacting and killing numerous civilians once they did invade and got some soldiers killed.
European nations probably have more reason to be cautious about the Swiss and Switzerland's rather unique geography plays a role in that as well.
Comparing to Vietnam/Afghanistan resistance
This is easy to claim, but the devil's in the details and they don't match up that well. Here's a stab at a comparison.
Note that "Occupiers", for lack of a better term, were the Americans in Vietnam and Afghanistan, and would be the Mainland Chinese in Taiwan.
Criteria |
Taiwan |
Afghanistan |
Vietnam |
critical for occupier |
probably |
no |
no |
occupier/resistance ethnic/religious differences |
limited |
religious ethnic |
ethnic |
supply chain for occupier |
100km |
10000km+ |
10000km+ |
land supply chain for resistance |
_ |
Pakistan |
North Vietnam |
safe harbor for resistance |
_ |
Pakistan |
North Vietnam/Cambodia |
militarized resistance |
no |
yes (Taliban) |
yes (NVA) |
occupier government |
Totalitarian |
Democracy |
Democracy |
local occupation government |
Totalitarian |
flawed "democracy" |
dictatorship |
terrain |
flat in populated areas |
mountains |
jungle |
occupier respect for Geneva conventions/civilians |
likely limited (ask Uyghurs) |
abuses look bad to voters |
abuses look bad to voters |
From these it would seem massively easier for China to "stay the distance" in Taiwan than it was for the US.