How do I rotate a model around a custom axis

I used ‘rotateOnAxis’, but it dosen’t work.

 loader.load('10.stl', function (geometry) {
            var material = new THREE.MeshLambertMaterial({
                color: 0x25bbf7,
            }); //材质对象Material
            geometry.center()

            mesh10 = new THREE.Mesh(geometry, material); //网格模型对象Mesh
            mesh10.scale.set(0.1, 0.1, 0.1);
            mesh10.position.set(9, 17.6, 27)
            var axis = new THREE.Vector3(0, 0, 1);//向量axis
            mesh10.rotateOnAxis(axis, Math.PI / 2);//绕axis轴旋转π/8
            // console.log(changePivot(9, 17.6, 27,mesh10))

        })